From e55f2f0b92a6b723f849b9d31cfd8ab83733d553 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 29 Dec 2019 16:19:33 -0500 Subject: [PATCH] Ensure var is valid first --- client-common/network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/client-common/network.py b/client-common/network.py index 2e7a5844..bf76bc40 100644 --- a/client-common/network.py +++ b/client-common/network.py @@ -394,6 +394,7 @@ def add_acl(zk_conn, network, direction, description, rule, order): return False, 'ERROR: Could not find network "{}" in the cluster!'.format(network) # Check if the ACL matches a description currently in the database + match_description = '' full_acl_list = getNetworkACLs(zk_conn, net_vni, 'both') for acl in full_acl_list: if acl['description'] == description: