Explorar o código

Make sure gateway is in scope

Nuwan Goonasekera %!s(int64=8) %!d(string=hai) anos
pai
achega
75d0f8dbe7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      test/test_compute_service.py

+ 1 - 0
test/test_compute_service.py

@@ -313,6 +313,7 @@ class CloudComputeServiceTestCase(ProviderTestBase):
 
             # check floating ips
             router = self.provider.networking.routers.create(name, net)
+            gateway = None
 
             def cleanup_router():
                 with helpers.cleanup_action(lambda: router.delete()):