Skip to content

Commit

Permalink
Fixes: Openstack HA : Failing to delete a node from cluster configura…
Browse files Browse the repository at this point in the history
…tion when that particular node not reachable

Not running purge commands if the node is dead.

Change-Id: I78304c609d46b315ca3c5db518d1dba166c2b309
ClosesBug: 1493624
  • Loading branch information
Ranjeet R committed Sep 10, 2015
1 parent bc2768d commit 0aaf580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabfile/tasks/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ def prov_control_bgp_node(host_string, oper='add', tgt_node=None):
cfgm_ip = hstr_to_ip(get_control_host_string(cfgm_host))
cfgm_host_password = get_env_passwords(env.roledefs['cfgm'][0])

if tgt_node == None:
if tgt_node:
tgt_ip = hstr_to_ip(get_control_host_string(tgt_node))
tgt_hostname = sudo("getent hosts %s | awk \'{print $2}\'" % tgt_ip)
else:
Expand Down

0 comments on commit 0aaf580

Please sign in to comment.