Fix Distributed Cloud patch orchestration apply failure

A typo error in dcmanager causes patch orchestration apply in progress
forever. This update fixed the typo error and made patch orchestration
in Distributed Cloud works again.

Closes-Bug: 1792175

Change-Id: Ie955676b97baf7568baf1fe2e8e74302a79020a2
Signed-off-by: Andy Ning <andy.ning@windriver.com>
This commit is contained in:
Andy Ning 2018-09-12 10:27:51 -04:00
parent be7da964fd
commit b15f0b20bd
1 changed files with 2 additions and 2 deletions

View File

@ -630,7 +630,7 @@ class PatchOrchThread(threading.Thread):
# First need to retrieve the Subcloud's Keystone session
try:
sc_ks_client = self.get_ks_client(strategy_step.subcloud_name)
sc_ks_client = self.get_ks_client(strategy_step.subcloud.name)
except (keystone_exceptions.EndpointNotFound, IndexError) as e:
message = ("Identity endpoint for subcloud: %s not found. %s" %
(strategy_step.subcloud.name, e))
@ -1341,7 +1341,7 @@ class PatchOrchThread(threading.Thread):
# First need to retrieve the Subcloud's Keystone session
try:
sc_ks_client = self.get_ks_client(strategy_step.subcloud_name)
sc_ks_client = self.get_ks_client(strategy_step.subcloud.name)
except (keystone_exceptions.EndpointNotFound, IndexError) as e:
message = ("Identity endpoint for subcloud: %s not found. %s" %
(strategy_step.subcloud.name, e))