summaryrefslogtreecommitdiffstats
path: root/create_node.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_node.sh')
-rwxr-xr-xcreate_node.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/create_node.sh b/create_node.sh
index f7bf73c..7d1a689 100755
--- a/create_node.sh
+++ b/create_node.sh
@@ -48,6 +48,7 @@ echo "Creating $NAME.xml"
substitute_vars templates/node.xml tmp/$NAME.xml
# install the XML file
-virsh undefine $NAME 2>&1 > /dev/null || true
+virsh undefine $NAME > /dev/null 2>&1 || true
virsh define tmp/$NAME.xml || exit 1
+
exit 0