From 7649267c77eb157fedc59fc75aa7cb13c54fb7d6 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 24 May 2016 13:46:16 +1000 Subject: [PATCH] Undefine domains with --managed-save option Just in case previous version was automatically saved. Signed-off-by: Martin Schwenke --- autocluster | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autocluster b/autocluster index dafc605..cb19976 100755 --- a/autocluster +++ b/autocluster @@ -210,7 +210,8 @@ list_all_virsh_domains () virsh_cluster () { - local command="$1" + local command="$1" + shift local nodes=$(list_all_cluster_nodes) local domains=$(list_all_virsh_domains) @@ -223,7 +224,7 @@ virsh_cluster () local ret=0 local n for n in $nodes ; do - virsh "$command" "$n" 2>&1 || ret=$? + virsh "$command" "$n" "$@" 2>&1 || ret=$? done return $ret @@ -601,7 +602,7 @@ cluster_undefine () announce "cluster undefine \"${CLUSTER}\"" [ -n "$CLUSTER" ] || die "\$CLUSTER not set" - virsh_cluster undefine || true + virsh_cluster undefine --managed-save || true } cluster_update_hosts () -- 2.34.1