Blame SOURCES/bz1078078-pcmk-warn_about_fencing_when_fencing_is_disabled.patch

7ebc05
commit 583197a0748aaef3dca09fe45cdac30f75304947
7ebc05
Author: Andrew Beekhof <andrew@beekhof.net>
7ebc05
Date:   Thu Apr 10 19:55:26 2014 +1000
7ebc05
7ebc05
    Correctly warn about fencing when fencing is disabled
7ebc05
7ebc05
diff --git a/lib/pengine/complex.c b/lib/pengine/complex.c
7ebc05
index a3133e7..225b269 100644
7ebc05
--- a/lib/pengine/complex.c
7ebc05
+++ b/lib/pengine/complex.c
7ebc05
@@ -574,7 +574,7 @@ common_unpack(xmlNode * xml_obj, resource_t ** rsc,
7ebc05
 
7ebc05
     } else if (safe_str_eq(value, "fencing")) {
7ebc05
         set_bit((*rsc)->flags, pe_rsc_needs_fencing);
7ebc05
-        if (is_set(data_set->flags, pe_flag_stonith_enabled)) {
7ebc05
+        if (is_not_set(data_set->flags, pe_flag_stonith_enabled)) {
7ebc05
             crm_config_warn("%s requires fencing but fencing is disabled", (*rsc)->id);
7ebc05
         }
7ebc05