X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Fopenstack%2Fopenstack_dummies%2Fnova_dummy_api.py;h=3409436d960470807840b8209e597bcb92586384;hb=d8fd9372be1e135f2e11efe2d69c0c16bbcb7be4;hp=550f8e77cc3ce9e8378a36068a68a78fa52edab0;hpb=01e585d02ef32809019618e9dd1bae45c6a32c2d;p=osm%2Fvim-emu.git diff --git a/src/emuvim/api/openstack/openstack_dummies/nova_dummy_api.py b/src/emuvim/api/openstack/openstack_dummies/nova_dummy_api.py index 550f8e7..3409436 100755 --- a/src/emuvim/api/openstack/openstack_dummies/nova_dummy_api.py +++ b/src/emuvim/api/openstack/openstack_dummies/nova_dummy_api.py @@ -535,7 +535,7 @@ class NovaListFlavorById(Resource): Does not really remove anything from the machine, just fakes an OK. """ LOG.debug("API CALL: %s GET" % str(self.__class__.__name__)) - return Response("{}", status=204, mimetype="application/json") + return Response("", status=204, mimetype="application/json") class NovaListImages(Resource): @@ -657,7 +657,7 @@ class NovaListImageById(Resource): Does not really remove anything from the machine, just fakes an OK. """ LOG.debug("API CALL: %s GET" % str(self.__class__.__name__)) - return Response("{}", status=204, mimetype="application/json") + return Response("", status=204, mimetype="application/json") class NovaShowServerDetails(Resource): @@ -729,10 +729,10 @@ class NovaShowServerDetails(Resource): :type id: ``str`` :param serverid: The UUID of the server :type serverid: ``str`` - :return: Returns 200 if everything is fine. + :return: Returns 204 if everything is fine. :rtype: :class:`flask.response` """ - LOG.debug("API CALL: %s POST" % str(self.__class__.__name__)) + LOG.debug("API CALL: %s DELETE" % str(self.__class__.__name__)) try: server = self.api.compute.find_server_by_name_or_id(serverid) if server is None: @@ -740,7 +740,7 @@ class NovaShowServerDetails(Resource): self.api.compute.stop_compute(server) - response = Response('Server deleted.', status=204, mimetype="application/json") + response = Response('', status=204, mimetype="application/json") response.headers['Access-Control-Allow-Origin'] = '*' return response