in ec2stack/providers/cloudstack/__init__.py [0:0]
def describe_items_request(args, not_found):
"""
Executes the request.
@param args: Request payload.
@param not_found: Function to call on empty response from Cloudstack.
@return: Response.
"""
args['listAll'] = 'true'
response = requester.make_request(args)
response = response[response.keys()[0]]
if 'count' in response:
return response
elif callable(not_found):
return not_found()
else:
return not_found