Kaynağa Gözat

SubnetService does not need network for get

Alexandru Mahmoud 6 yıl önce
ebeveyn
işleme
ffad54f685
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      cloudbridge/base/subservices.py

+ 1 - 1
cloudbridge/base/subservices.py

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