Blame SOURCES/bz1476401-1-adhere-no_status-in-fence_action.patch

035a21
--- a/fence/agents/lib/fencing.py.py	2017-09-28 13:23:38.300085104 +0200
035a21
+++ b/fence/agents/lib/fencing.py.py	2017-09-28 13:43:36.007103410 +0200
035a21
@@ -1025,10 +1028,15 @@
035a21
 						print outlet_id + options["--separator"] + alias + options["--separator"] + status
035a21
 			return
035a21
 
035a21
-		status = get_multi_power_fn(tn, options, get_power_fn)
035a21
-
035a21
-		if status != "on" and status != "off":
035a21
-			fail(EC_STATUS)
035a21
+		if options["--action"] == "monitor" and not "port" in options["device_opt"] and "no_status" in options["device_opt"]:
035a21
+			# Unable to do standard monitoring because 'status' action is not available
035a21
+			return 0
035a21
+
035a21
+		status = None
035a21
+		if not "no_status" in options["device_opt"]:
035a21
+			status = get_multi_power_fn(tn, options, get_power_fn)
035a21
+			if status != "on" and status != "off":
035a21
+				fail(EC_STATUS)
035a21
 
035a21
 		if options["--action"] == status:
035a21
 			if not (status == "on" and "force_on" in options["device_opt"]):