Skip to content

Commit

Permalink
Fixing prov_esxi break for vcenter gateway change
Browse files Browse the repository at this point in the history
Closes-Bug: 1638592

Change-Id: I1a7c48d7abe42b84f7aba7a62400115dc69622a4
  • Loading branch information
sandip-d committed Nov 2, 2016
1 parent ac3b105 commit 321af1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fabfile/tasks/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -2914,8 +2914,8 @@ def create_contrailvm(host_list, host_string, esxi_info, vcenter_info):
return

if host in esxi_info.keys():
if 'contrail_vm' not in host:
return #For vcenter gateway, contrail_vm not there in esxi info
if 'contrail_vm' not in esxi_info[host]:
return #For vcenter gateway, contrail_vm not present in esxi info
mode = get_mode(esxi_info[host]['contrail_vm']['host'])
if mode == 'openstack':
std_switch = True
Expand Down

0 comments on commit 321af1a

Please sign in to comment.