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
This commit is contained in:
Riccardo Pittau 2019-11-13 18:06:01 +01:00
parent 2a6b74b558
commit f8c4f7b1e4
1 changed files with 1 additions and 1 deletions

View File

@ -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