Blob Blame History Raw
commit ef243397975d263ac886d71596581b08ecf234c5
Author: Marek 'marx' Grac <mgrac@redhat.com>
Date:   Mon Sep 19 12:55:57 2016 +0200

    fence_lpar: Fix indentation

diff --git a/fence/agents/lpar/fence_lpar.py b/fence/agents/lpar/fence_lpar.py
index de8ce0d..2ba2bbe 100644
--- a/fence/agents/lpar/fence_lpar.py
+++ b/fence/agents/lpar/fence_lpar.py
@@ -98,10 +98,10 @@ def get_lpar_list(conn, options):
 
 		lines = res.group(1).split("\n")
 		for outlet_line in lines:
-		        try:
+			try:
 				(port, status) = outlet_line.split(":")
-                        except ValueError:
-                                fail_usage('Output does not match expected HMC version, try different one');
+			except ValueError:
+				fail_usage('Output does not match expected HMC version, try different one');
 			outlets[port] = ("", status)
 	elif options["--hmc-version"] == "IVM":
 		conn.send("lssyscfg -r lpar -m " + options["--managed"] +
@@ -117,10 +117,10 @@ def get_lpar_list(conn, options):
 
 		lines = res.group(1).split("\n")
 		for outlet_line in lines:
-		        try:
+			try:
 				(port, status) = outlet_line.split(",")
-                        except ValueError:
-                                fail_usage('Output does not match expected HMC version, try different one');
+			except ValueError:
+				fail_usage('Output does not match expected HMC version, try different one');
 			outlets[port] = ("", status)
 
 	return outlets
@@ -145,7 +145,7 @@ def define_new_opts():
 
 def main():
 	device_opt = ["ipaddr", "login", "passwd", "secure", "cmd_prompt", \
-	                "port", "managed", "hmc_version"]
+			"port", "managed", "hmc_version"]
 
 	atexit.register(atexit_handler)