From 078f668835b9d083c99082e5c9ad7f391ef81739 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 17 Apr 2014 21:57:16 -0400 Subject: [PATCH] skip networks that are using a template with translation --- planetstack/observer/steps/sync_network_deployments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 \ -- 2.47.0