Blame SOURCES/bz1497241-fence_compute-fence_scsi-fix-parameters.patch

08923a
--- a/fence/agents/lib/fencing.py.py	2017-09-19 12:29:04.158438532 +0200
08923a
+++ b/fence/agents/lib/fencing.py.py	2017-09-19 12:48:22.252509114 +0200
08923a
@@ -705,11 +705,12 @@
08923a
 				continue
08923a
 
08923a
 			(name, value) = (line + "=").split("=", 1)
08923a
-			name = name.replace("-", "_");
08923a
 			value = value[:-1]
08923a
 
08923a
-			if name in mapping_longopt_names:
08923a
-				name = mapping_longopt_names[name]
08923a
+			if name.replace("-", "_") in mapping_longopt_names:
08923a
+				name = mapping_longopt_names[name.replace("-", "_")]
08923a
+			elif name.replace("_", "-") in mapping_longopt_names:
08923a
+				name = mapping_longopt_names[name.replace("_", "-")]
08923a
 
08923a
 			if avail_opt.count(name) == 0 and name in ["nodename"]:
08923a
 				continue