Explorar o código

Merge pull request #221 from CloudVE/almahmoud-patch-1

SubnetServices does not need network for get
Nuwan Goonasekera %!s(int64=6) %!d(string=hai) anos
pai
achega
c77f873f50
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cloudbridge/base/subservices.py

+ 1 - 1
cloudbridge/base/subservices.py

@@ -142,7 +142,7 @@ class BaseSubnetSubService(SubnetSubService, BasePageableObjectMixin):
         return self.__provider
 
     def get(self, subnet_id):
-        sn = self._provider.networking.subnets.get(self.network, subnet_id)
+        sn = self._provider.networking.subnets.get(subnet_id)
         if sn.network_id != self.network.id:
             log.warning("The SubnetSubService nested in the network '{}' "
                         "returned subnet '{}' which is attached to another "