From: peusterm Date: Thu, 2 Aug 2018 14:04:04 +0000 (+0200) Subject: Fix: Made OS Glance fake API compatible to latest pyhton-glanceclient. X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F6391%2F1;p=osm%2Fvim-emu.git Fix: Made OS Glance fake API compatible to latest pyhton-glanceclient. This fixes a major bug that broke the integration between OSM and vim-emu. Change-Id: I5a92417ccbf919d5e160ac5b2c66a88f3c7d6fe5 Signed-off-by: peusterm --- diff --git a/src/emuvim/api/openstack/openstack_dummies/glance_dummy_api.py b/src/emuvim/api/openstack/openstack_dummies/glance_dummy_api.py index 6edaa72..16241e0 100755 --- a/src/emuvim/api/openstack/openstack_dummies/glance_dummy_api.py +++ b/src/emuvim/api/openstack/openstack_dummies/glance_dummy_api.py @@ -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()