From ceb2ae16b799832496a0d2801f79276a2926d374 Mon Sep 17 00:00:00 2001 From: Alex Kozyrev Date: Thu, 14 Feb 2019 15:57:51 -0500 Subject: [PATCH] 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 --- sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py index c2556f9356..e0220eabc6 100644 --- a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py +++ b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py @@ -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: