You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/09/26 22:43:33 UTC
[6/8] libcloud git commit: Updated the filtering for list networks.
Is URL based not a parameter.
Updated the filtering for list networks. Is URL based not a parameter.
Closes #587
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/da7f04e0
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/da7f04e0
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/da7f04e0
Branch: refs/heads/trunk
Commit: da7f04e02083584725413b0074cb15ebcbc96004
Parents: 96df087
Author: Anthony Shaw <an...@gmail.com>
Authored: Thu Sep 24 09:27:18 2015 +1000
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sat Sep 26 22:37:20 2015 +0200
----------------------------------------------------------------------
libcloud/compute/drivers/dimensiondata.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/da7f04e0/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index de12b8d..f975b79 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -243,13 +243,13 @@ class DimensionDataNodeDriver(NodeDriver):
: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):