Browse Source

Don't succeed if network_id is None to avoid silent errors

Nuwan Goonasekera 7 năm trước cách đây
mục cha
commit
8ce2b5e4c9

+ 0 - 2
cloudbridge/cloud/base/services.py

@@ -190,8 +190,6 @@ class BaseNetworkService(
                 if subnet.network_id == self.id]
                 if subnet.network_id == self.id]
 
 
     def delete(self, network_id):
     def delete(self, network_id):
-        if network_id is None:
-            return True
         network = self.get(network_id)
         network = self.get(network_id)
         if network:
         if network:
             log.info("Deleting network %s", network_id)
             log.info("Deleting network %s", network_id)