Just in case previous version was automatically saved.
Signed-off-by: Martin Schwenke <martin@meltin.net>
virsh_cluster ()
{
- local command="$1"
+ local command="$1"
+ shift
local nodes=$(list_all_cluster_nodes)
local domains=$(list_all_virsh_domains)
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
announce "cluster undefine \"${CLUSTER}\""
[ -n "$CLUSTER" ] || die "\$CLUSTER not set"
- virsh_cluster undefine || true
+ virsh_cluster undefine --managed-save || true
}
cluster_update_hosts ()