in gstack/controllers/disks.py [0:0]
def listdisks(projectid, authorization, zone):
args = {'command': 'listVolumes'}
kwargs = {'projectid': projectid, 'zone': zone}
items = controllers.describe_items(
authorization, args, 'volume',
_cloudstack_volume_to_gce, **kwargs)
populated_response = {
'kind': 'compute#imageList',
'selfLink': urllib.unquote_plus(request.base_url),
'id': 'projects/' + projectid + '/global/images',
'items': items
}
return helpers.create_response(data=populated_response)