From f8c4f7b1e4b8c7c177ccb45f4f0d8acba1821279 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Wed, 13 Nov 2019 18:06:01 +0100 Subject: [PATCH] Fix variable name in cleanup_baremetal_basic_ops func Correcting the variable name for virtual bmc instances during devstack unstack ironic cleanup phase. Change-Id: Ie35a45e0806f9da07d121900831c6a61e33d23e5 --- devstack/lib/ironic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 0d99f1cef8..a4b18e1d1a 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -2718,7 +2718,7 @@ function cleanup_baremetal_basic_ops { for vm_name in $(_ironic_bm_vm_names); do # Delete the Virtual BMCs if is_deployed_by_ipmi; then - vbmc --no-daemon list | grep -a $NAME && vbmc --no-daemon delete $NAME || /bin/true + vbmc --no-daemon list | grep -a $vm_name && vbmc --no-daemon delete $vm_name || /bin/true fi # pick up the $LIBVIRT_GROUP we have possibly joint