Blame SOURCES/bz1214522-5-port_as_ip.patch

e4ffb1
From 4e4213f1aabfbb0a09f66cabd16079dc6e71e042 Mon Sep 17 00:00:00 2001
e4ffb1
From: Marek 'marx' Grac <mgrac@redhat.com>
e4ffb1
Date: Tue, 11 Aug 2015 09:29:08 +0200
e4ffb1
Subject: [PATCH] fencing: Move checking of --plug and --port-as-ip to run them
e4ffb1
 only on getopt
e4ffb1
e4ffb1
Fix wrong backporting of patch 4442f2548543f418fc8e094c701fa27edf8e6bfa
e4ffb1
---
e4ffb1
 fence/agents/lib/fencing.py.py | 2 +-
e4ffb1
 1 file changed, 1 insertion(+), 1 deletion(-)
e4ffb1
e4ffb1
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
e4ffb1
index bb8e3a4..9a16aee 100644
e4ffb1
--- a/fence/agents/lib/fencing.py.py
e4ffb1
+++ b/fence/agents/lib/fencing.py.py
e4ffb1
@@ -659,7 +659,7 @@ def process_input(avail_opt):
e4ffb1
 		#####
e4ffb1
 
e4ffb1
 		# This test should NOT be used for stdin input where it should be allowed (and ignored)
e4ffb1
-		if "port_as_ip" in device_opt and not "--port-as-ip" in options and "--plug" in options:
e4ffb1
+		if "port_as_ip" in avail_opt and not "--port-as-ip" in opt and "--plug" in opt:
e4ffb1
 			fail_usage("Parser error: option -n/--plug is not recognized")
e4ffb1
 	else:
e4ffb1
 		opt = {}
e4ffb1
-- 
e4ffb1
1.9.3
e4ffb1