File pacemaker-tools-use-output-redirection-correctly-in-crm_standby.patch of Package pacemaker.10805

commit 8aaa849e909680bf854ff5ecca2367e7e20156a7
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Thu May 10 12:51:22 2018 -0500

    Low: tools: use output redirection correctly in crm_standby

diff --git a/cts/cli/regression.tools.exp b/cts/cli/regression.tools.exp
index 73155fbab..d3629b0c1 100644
--- a/cts/cli/regression.tools.exp
+++ b/cts/cli/regression.tools.exp
@@ -588,7 +588,6 @@ Call failed: Update was older than existing configuration
 =#=#=#= End test: Replace operation should fail - Update was older than existing configuration (103) =#=#=#=
 * Passed: cibadmin       - Replace operation should fail
 =#=#=#= Begin test: Default standby value =#=#=#=
-Error performing operation: No such device or address
 scope=status  name=standby value=off
 =#=#=#= Current cib after: Default standby value =#=#=#=
 <cib epoch="11" num_updates="2" admin_epoch="1">
diff --git a/tools/crm_standby.in b/tools/crm_standby.in
index b8222aede..220c1e7f9 100755
--- a/tools/crm_standby.in
+++ b/tools/crm_standby.in
@@ -127,7 +127,7 @@ if [ $lifetime -eq 0 ]; then
         g)
             # For query, report the forever entry if one exists, otherwise
             # report the reboot entry if one exists, otherwise report off.
-            crm_attribute $options -l forever 2>&1 > /dev/null
+            crm_attribute $options -l forever >/dev/null 2>&1
             if [ $? -eq 0 ]; then
                 options="$options -l forever"
             else
openSUSE Build Service is sponsored by