Fix: Made OS Glance fake API compatible to latest pyhton-glanceclient. BUILD_v4.0.1_1
authorpeusterm <manuel.peuster@uni-paderborn.de>
Thu, 2 Aug 2018 14:04:04 +0000 (16:04 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Thu, 2 Aug 2018 14:04:04 +0000 (16:04 +0200)
This fixes a major bug that broke the integration between OSM and vim-emu.

Change-Id: I5a92417ccbf919d5e160ac5b2c66a88f3c7d6fe5
Signed-off-by: peusterm <manuel.peuster@upb.de>
src/emuvim/api/openstack/openstack_dummies/glance_dummy_api.py

index 6edaa72..16241e0 100755 (executable)
@@ -86,6 +86,7 @@ class GlanceSchema(Resource):
         resp = dict()
         resp['name'] = 'someImageName'
         resp['properties'] = dict()
+        resp['links'] = list()
         # just an ugly hack to allow the openstack client to work
         return Response(json.dumps(resp), status=200,
                         mimetype='application/json')
@@ -99,7 +100,7 @@ class GlanceListImagesApi(Resource):
         LOG.debug("API CALL: %s GET" % str(self.__class__.__name__))
         try:
             resp = dict()
-            resp['next'] = None
+            resp['next'] = None
             resp['first'] = "/v2/images"
             resp['schema'] = "/v2/schemas/images"
             resp['images'] = list()