Fix for the issue for with host-delete command failure due to a typo

Recent Barbican integration commit introduced a typo in 'ihost' variable
That leads to the host-delete command failure with the following message
"local variable 'host' referenced before assignment"

Closes-Bug: 1815942
Change-Id: If8d8dcffb7b4f1bcfb831a4b6a104c95b76e5f2f
Signed-off-by: Alex Kozyrev <alex.kozyrev@windriver.com>
This commit is contained in:
Alex Kozyrev 2019-02-14 15:57:51 -05:00
parent 4abb322fb0
commit ceb2ae16b7
1 changed files with 1 additions and 1 deletions

View File

@ -2442,7 +2442,7 @@ class HostController(rest.RestController):
# tell conductor to delete the barbican entry associated with this host (if present)
pecan.request.rpcapi.delete_barbican_secret(pecan.request.context,
host.uuid)
ihost.uuid)
# Notify patching to drop the host
if ihost.hostname is not None: