Skip to content

Commit

Permalink
move preconfig in try clause as that also does remote command execution.
Browse files Browse the repository at this point in the history
Do not perform remote command exec for compute on esxi host.

Change-Id: I4a5c0f98b53f18439948176c9661830bb77631be
Closes-Bug: #1718318
  • Loading branch information
kamleshp committed Sep 19, 2017
1 parent abefc32 commit 092e79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/preconfig.py
Expand Up @@ -93,6 +93,7 @@ def preconfig(cliargs):
args.server_manager_repo_port)
try:
hostobj.connect()
hostobj.preconfig(sku=cliargs.sku)
except:
if "contrail-compute" in getattr(hostobj, 'roles', []):
srv_params = getattr(hostobj, 'parameters', {})
Expand All @@ -105,7 +106,6 @@ def preconfig(cliargs):
raise RuntimeError('Connection to (%s) Failed' % hostobj.ip)
else:
raise RuntimeError('Connection to (%s) Failed' % hostobj.ip)
hostobj.preconfig(sku=cliargs.sku)
hosts.append(hostobj)

@staticmethod
Expand Down

0 comments on commit 092e79d

Please sign in to comment.