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

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