Code Review
/
kuberef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
a0809c1
)
Merge ""Better" pattern matching for name of jump VM"
author
Rihab Banday
<rihab.banday@ericsson.com>
Wed, 19 Aug 2020 07:35:35 +0000
(07:35 +0000)
committer
Gerrit Code Review
<gerrit@opnfv.org>
Wed, 19 Aug 2020 07:35:35 +0000
(07:35 +0000)
functions.sh
patch
|
blob
|
history
diff --git
a/functions.sh
b/functions.sh
index
fd19209
..
7d867cd
100755
(executable)
--- a/
functions.sh
+++ b/
functions.sh
@@
-10,10
+10,10
@@
# Clean up
clean_up() {
- if sudo virsh list --all | grep "
${VM_NAME}
.*running" ; then
+ if sudo virsh list --all | grep "
${VM_NAME}
.*running" ; then
sudo virsh destroy "$VM_NAME"
fi
- if sudo virsh list --all | grep "
${VM_NAME}
" ; then
+ if sudo virsh list --all | grep "
${VM_NAME}
" ; then
sudo virsh undefine "$VM_NAME"
fi
sudo rm -rf "/var/lib/libvirt/images/$VM_NAME"