Merge pull request #492 from ClusterLabs/rework-pcs-wrapper

Fixed wrappers to handle quoted arguments properly.
main
digimer-bot 1 year ago committed by GitHub
commit 159a8e949c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/anvil-pcs-wrapper
  2. 4
      tools/anvil-virsh-wrapper

@ -2,9 +2,9 @@
(
if [ "$1" == "status" ]; then
pcs $@
pcs "$@"
exit $?
fi
flock -e 200
pcs $@
pcs "$@"
) 200>/tmp/pcs.lock

@ -2,9 +2,9 @@
(
if [ "$1" != "list" ]; then
virsh $@
virsh "$@"
exit $?
fi
flock -e 200
virsh $@
virsh "$@"
) 200>/tmp/virsh.lock

Loading…
Cancel
Save