skip networks that are using a template with translation
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 18 Apr 2014 01:57:16 +0000 (21:57 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 18 Apr 2014 01:57:16 +0000 (21:57 -0400)
planetstack/observer/steps/sync_network_deployments.py

index e560aad..d27430d 100644 (file)
@@ -31,7 +31,8 @@ class SyncNetworkDeployments(OpenStackSyncStep):
         for network in Network.objects.filter():
             # ignore networks that have
             # template.visibility = private and template.translation = none
-            if network.template.visibility == 'private' and network.template.translation == 'none':                                  continue
+            if network.template.visibility == 'private' and not network.template.translation == 'none':
+                continue
             expected_deployments = slice_deploy_lookup[network.owner]
             for expected_deployment in expected_deployments:
                 if network not in network_deploy_lookup or \