From: Tony Mack Date: Fri, 18 Apr 2014 01:57:16 +0000 (-0400) Subject: skip networks that are using a template with translation X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=078f668835b9d083c99082e5c9ad7f391ef81739;p=plstackapi.git skip networks that are using a template with translation --- diff --git a/planetstack/observer/steps/sync_network_deployments.py b/planetstack/observer/steps/sync_network_deployments.py index e560aad..d27430d 100644 --- a/planetstack/observer/steps/sync_network_deployments.py +++ b/planetstack/observer/steps/sync_network_deployments.py @@ -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 \