Procházet zdrojové kódy

Merge branch 'master' into move_zone_to_provider

Nuwan Goonasekera před 7 roky
rodič
revize
609a98c2e7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) >