فهرست منبع

Merge branch 'master' into move_zone_to_provider

Nuwan Goonasekera 7 سال پیش
والد
کامیت
609a98c2e7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      cloudbridge/cloud/providers/gcp/services.py

+ 1 - 1
cloudbridge/cloud/providers/gcp/services.py

@@ -1054,7 +1054,7 @@ class GCPSubnetService(BaseSubnetService):
         cidr_block = GCPSubnet.CB_DEFAULT_SUBNET_IPV4RANGE
         net = self.provider.networking.networks.get_or_create_default()
         if net.subnets:
-            max_sn = net.subnets[0]
+            max_sn = list(net.subnets)[0]
             # Find the maximum address subnet address space within the network
             for esn in net.subnets:
                 if (ipaddress.ip_network(esn.cidr_block) >