diff --git a/incubating/argo-cd-sync/argocd_sync.py b/incubating/argo-cd-sync/argocd_sync.py index e2476c55d..c34e3a583 100644 --- a/incubating/argo-cd-sync/argocd_sync.py +++ b/incubating/argo-cd-sync/argocd_sync.py @@ -356,8 +356,8 @@ def application_autosync(ingress_host): logging.debug("Application Sync policy result: %s", err) sys.exit(1) - #logging.debug("App sync Policy: ", result['applicationProxyQuery']['spec']['syncPolicy']['automated']) - if result['applicationProxyQuery']['spec']['syncPolicy'] == None or result['applicationProxyQuery']['spec']['syncPolicy']['automated'] == None: + logging.debug("App sync Policy: ", result['applicationProxyQuery']['spec']['syncPolicy']['automated']) + if result['applicationProxyQuery']['spec']['syncPolicy']['automated'] == None: return False else: return True