summaryrefslogtreecommitdiffstats
path: root/dcae-cli/dcae_cli/util
diff options
context:
space:
mode:
authortb2541onap <tb2541@att.com>2018-10-15 13:26:39 -0400
committertb2541onap <tb2541@att.com>2018-10-15 13:36:53 -0400
commitc306f8990406933d1a10eaa46cc9a045bd0d7f03 (patch)
treea1cad2a4cf26093d7cb4c2a6fa2a6914711cf6ed /dcae-cli/dcae_cli/util
parent1943cd6c3fd5b70209089d9d2135ffb344f0405a (diff)
Policy Reconfiguration change to function parms
Updated 2 Policy Reconfig functions to use a passed parameter Parameter needed since “consul_host” variable had been removed Change-Id: I1e967cbf1de2c832679be6e2d120a278cd48a5d4 Issue-ID: DCAEGEN2-576 Signed-off-by: tb2541onap <tb2541@att.com>
Diffstat (limited to 'dcae-cli/dcae_cli/util')
-rw-r--r--dcae-cli/dcae_cli/util/discovery.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dcae-cli/dcae_cli/util/discovery.py b/dcae-cli/dcae_cli/util/discovery.py
index 0fc0165..e8d2ff8 100644
--- a/dcae-cli/dcae_cli/util/discovery.py
+++ b/dcae-cli/dcae_cli/util/discovery.py
@@ -614,7 +614,7 @@ def config_context(user, cname, cver, params, interface_map, instance_map,
remove_config(conf_key, host)
-def policy_update(policy_change_file):
+def policy_update(policy_change_file, consul_host):
# Determine if it is an 'updated_policies' or 'removed_policies' change, or if user included ALL policies
policies = True if "policies" in policy_change_file.keys() else False
@@ -726,7 +726,7 @@ def extract_policy_id(policy_folder, policy):
return
-def build_policy_command(policy_reconfig_path, policy_change_file):
+def build_policy_command(policy_reconfig_path, policy_change_file, consul_host):
""" Build command to execute the Policy Reconfig script in the Docker container """
# Determine if it is an 'updated_policies' and/or 'removed_policies' change, or if user included ALL policies