Make sure simply qualified subnet works too
@@ -7073,9 +7073,10 @@ class GCENodeDriver(NodeDriver):
"""
region_name = None
if name.startswith('https://'):
- parts = self._get_components_from_path(name)
+ #parts = self._get_components_from_path(name)
#name = parts['name']
- region_name = parts['region']
+ #region_name = parts['region']
+ request = name
else:
if isinstance(region, GCERegion):
region_name = region.name
@@ -7092,8 +7093,9 @@ class GCENodeDriver(NodeDriver):
else:
region_name = region.name
+ request = '/regions/%s/subnetworks/%s' % (region_name, name)
+
# request = '/regions/%s/subnetworks/%s' % (region_name, name)
- request = '%s' % (name)
response = self.connection.request(request, method='GET').object
return self._to_subnetwork(response)
