Skip to content

Commit

Permalink
Do not override the user specified cfgm host.
Browse files Browse the repository at this point in the history
Change-Id: I68ab3e474cca8053cead501a93e29b80017f317b
Closes-Bug: 1649679
  • Loading branch information
cijohnson committed Dec 13, 2016
1 parent ce97d01 commit 5e79790
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fabfile/tasks/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -1962,8 +1962,12 @@ def prov_control_bgp():
def prov_control_bgp_node(*args, **kwargs):
oper = kwargs.get('oper', 'add')
tgt_node = kwargs.get('tgt_node', None)
cfgm_host = kwargs.get('cfgm_host', env.roledefs['cfgm'][0])
cfgm_ip = get_contrail_internal_vip() or hstr_to_ip(get_control_host_string(cfgm_host))
cfgm_host = kwargs.get('cfgm_host', None)
if cfgm_host:
cfgm_ip = hstr_to_ip(get_control_host_string(cfgm_host))
else:
cfgm_host = env.roledefs['cfgm'][0]
cfgm_ip = get_contrail_internal_vip() or hstr_to_ip(get_control_host_string(cfgm_host))
cfgm_host_password = get_env_passwords(cfgm_host)
for host_string in args:
with settings(host_string = host_string):
Expand Down

0 comments on commit 5e79790

Please sign in to comment.