Blame SOURCES/bz1376481-2-fence_lpar-fix-monitor-fails.patch

217e50
commit ef243397975d263ac886d71596581b08ecf234c5
217e50
Author: Marek 'marx' Grac <mgrac@redhat.com>
217e50
Date:   Mon Sep 19 12:55:57 2016 +0200
217e50
217e50
    fence_lpar: Fix indentation
217e50
217e50
diff --git a/fence/agents/lpar/fence_lpar.py b/fence/agents/lpar/fence_lpar.py
217e50
index de8ce0d..2ba2bbe 100644
217e50
--- a/fence/agents/lpar/fence_lpar.py
217e50
+++ b/fence/agents/lpar/fence_lpar.py
217e50
@@ -98,10 +98,10 @@ def get_lpar_list(conn, options):
217e50
 
217e50
 		lines = res.group(1).split("\n")
217e50
 		for outlet_line in lines:
217e50
-		        try:
217e50
+			try:
217e50
 				(port, status) = outlet_line.split(":")
217e50
-                        except ValueError:
217e50
-                                fail_usage('Output does not match expected HMC version, try different one');
217e50
+			except ValueError:
217e50
+				fail_usage('Output does not match expected HMC version, try different one');
217e50
 			outlets[port] = ("", status)
217e50
 	elif options["--hmc-version"] == "IVM":
217e50
 		conn.send("lssyscfg -r lpar -m " + options["--managed"] +
217e50
@@ -117,10 +117,10 @@ def get_lpar_list(conn, options):
217e50
 
217e50
 		lines = res.group(1).split("\n")
217e50
 		for outlet_line in lines:
217e50
-		        try:
217e50
+			try:
217e50
 				(port, status) = outlet_line.split(",")
217e50
-                        except ValueError:
217e50
-                                fail_usage('Output does not match expected HMC version, try different one');
217e50
+			except ValueError:
217e50
+				fail_usage('Output does not match expected HMC version, try different one');
217e50
 			outlets[port] = ("", status)
217e50
 
217e50
 	return outlets
217e50
@@ -145,7 +145,7 @@ def define_new_opts():
217e50
 
217e50
 def main():
217e50
 	device_opt = ["ipaddr", "login", "passwd", "secure", "cmd_prompt", \
217e50
-	                "port", "managed", "hmc_version"]
217e50
+			"port", "managed", "hmc_version"]
217e50
 
217e50
 	atexit.register(atexit_handler)
217e50