Skip to content

Commit

Permalink
Updated the filtering for list networks. Is URL based not a parameter.
Browse files Browse the repository at this point in the history
Closes #587
  • Loading branch information
tonybaloney authored and Kami committed Sep 26, 2015
1 parent 96df087 commit da7f04e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcloud/compute/drivers/dimensiondata.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ def list_networks(self, location=None):
:return: a list of DimensionDataNetwork objects
:rtype: ``list`` of :class:`DimensionDataNetwork`
"""
params = {}
url_ext = ''
if location is not None:
params['location'] = location.id
url_ext = '/' + location.id

return self._to_networks(
self.connection
.request_with_orgId_api_1('networkWithLocation', params=params)
.request_with_orgId_api_1('networkWithLocation%s' % url_ext)
.object)

def _to_base_images(self, object):
Expand Down

0 comments on commit da7f04e

Please sign in to comment.