Blame SOURCES/bz1214522-5-port_as_ip.patch

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