Blame SOURCES/bz1214522-2-port_as_ip.patch

e4ffb1
From f62091cb5d9bfd150a70fed51a98117b9e2172ab Mon Sep 17 00:00:00 2001
e4ffb1
From: Marek 'marx' Grac <mgrac@redhat.com>
e4ffb1
Date: Wed, 5 Aug 2015 10:01:12 +0200
e4ffb1
Subject: [PATCH 2/4] fencing: Fix required options if --port-as-ip is used
e4ffb1
e4ffb1
---
e4ffb1
 fence/agents/lib/fencing.py.py | 4 ++++
e4ffb1
 1 file changed, 4 insertions(+)
e4ffb1
e4ffb1
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
e4ffb1
index 89c3379..f14d7e0 100644
e4ffb1
--- a/fence/agents/lib/fencing.py.py
e4ffb1
+++ b/fence/agents/lib/fencing.py.py
e4ffb1
@@ -700,6 +700,10 @@ def check_input(device_opt, opt):
e4ffb1
 	else:
e4ffb1
 		all_opt["login"]["required"] = "0"
e4ffb1
 
e4ffb1
+	if device_opt.count("port_as_ip"):
e4ffb1
+		all_opt["ipaddr"]["required"] = "0"
e4ffb1
+		all_opt["port"]["required"] = "0"
e4ffb1
+
e4ffb1
 	if device_opt.count("fabric_fencing"):
e4ffb1
 		all_opt["action"]["default"] = "off"
e4ffb1
 		all_opt["action"]["help"] = "-o, --action=[action]          Action: status, off (default) or on"
e4ffb1
-- 
e4ffb1
1.9.3
e4ffb1