File bsc#1102915-pacemaker-tools-cibsecret---help--version-doesnt-require-cluster-to-be-running.patch of Package pacemaker.21299

commit b2c18ec810f783b1f1f4b5990036a9cd5e399300
Author: Gao,Yan <ygao@suse.com>
Date:   Wed May 9 14:34:00 2018 +0200

    Fix: tools: cibsecret --help/--version doesn't require cluster to be running

diff --git a/tools/cibsecret.in b/tools/cibsecret.in
index 7996c232f..1beac97b4 100644
--- a/tools/cibsecret.in
+++ b/tools/cibsecret.in
@@ -328,8 +328,6 @@ cibsecret_sync() {
 	sync_files
 }
 
-check_env
-
 MAGIC="lrm://"
 umask 0077
 
@@ -358,6 +356,8 @@ case "$cmd" in
 	*) usage 1;
 esac
 
+check_env
+
 # we'll need these two often
 current=`get_cib_param $rsc $param`
 current_local=`get_local_param $rsc $param`
openSUSE Build Service is sponsored by