File pacemaker-tools-version-option-cibsecret.patch of Package pacemaker.8397
commit 37f952d42d4142d6320f455c131db4a8302433fe
Author: Bin Liu <bliu@suse.com>
Date: Tue May 16 16:12:15 2017 +0800
low: tools: add version options for cibsecret
Add "--version" option for cibserect.in to fix compile error.
diff --git a/tools/cibsecret.in b/tools/cibsecret.in
index 157feee89..c15071af2 100644
--- a/tools/cibsecret.in
+++ b/tools/cibsecret.in
@@ -43,6 +43,7 @@ usage() {
echo "cibsecret - A tool for managing cib secrets";
echo "";
echo "usage: $PROG [-C] <command> <parameters>";
+ echo "--version Display version information, then exit";
echo "";
echo "-C: don't read/write the CIB"
echo ""
@@ -370,6 +371,9 @@ case "$cmd" in
delete) [ $# -ne 3 ] && usage 1;;
sync) [ $# -ne 1 ] && usage 1;;
--help) usage 0;;
+ --version)
+ crm_attribute --version
+ exit $?;;
*) usage 1;
esac