diff options
Diffstat (limited to 'dcae-cli/dcae_cli')
-rw-r--r-- | dcae-cli/dcae_cli/_version.py | 2 | ||||
-rw-r--r-- | dcae-cli/dcae_cli/commands/component/commands.py | 4 | ||||
-rw-r--r-- | dcae-cli/dcae_cli/util/discovery.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/dcae-cli/dcae_cli/_version.py b/dcae-cli/dcae_cli/_version.py index f8b2331..a0e51bf 100644 --- a/dcae-cli/dcae_cli/_version.py +++ b/dcae-cli/dcae_cli/_version.py @@ -19,4 +19,4 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -*- coding: utf-8 -*- -__version__ = "2.11.0" +__version__ = "2.11.1" diff --git a/dcae-cli/dcae_cli/commands/component/commands.py b/dcae-cli/dcae_cli/commands/component/commands.py index d91027f..b2483d1 100644 --- a/dcae-cli/dcae_cli/commands/component/commands.py +++ b/dcae-cli/dcae_cli/commands/component/commands.py @@ -374,13 +374,13 @@ def reconfig(obj, policy_file, component): click.echo("") return - kvUpdated = dis.policy_update(policy_change_file) + kvUpdated = dis.policy_update(policy_change_file, dis.default_consul_host()) if kvUpdated: active_profile = profiles.get_profile() docker_logins = dis.get_docker_logins() - command = dis.build_policy_command(policy_reconfig_path, policy_change_file) + command = dis.build_policy_command(policy_reconfig_path, policy_change_file, dis.default_consul_host()) # Run the Policy Reconfig script client = du.get_docker_client(active_profile, docker_logins) 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 |