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