Fix 'endpoint missing' error caused by SDK's change
This bug is imported by the recent change in SDK I692705731c02b2c3abf1643c5b12dfa1c7da05cf, senlin should make the same change Change-Id: I7179d9057fe51304b4f85fddc326a099cce88b92 Closes-Bug: #1519642
This commit is contained in:
@@ -107,8 +107,8 @@ class Resource(base.Resource):
|
||||
if args:
|
||||
args.pop('id')
|
||||
url = '%s?%s' % (url, url_parse.urlencode(args))
|
||||
resp = session.get(url, service=cls.service)
|
||||
body = resp.body
|
||||
resp = session.get(url, endpoint_filter=cls.service)
|
||||
body = resp.json()
|
||||
if cls.resource_key:
|
||||
body = body[cls.resource_key]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user