Blame SOURCES/bz1214522-2-port_as_ip.patch

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