diff options
-rwxr-xr-x | autocluster | 7 |
1 files 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 () |