fence-agents: master - fence_ipmilan: Improve readibility of verbose output
Marek GrĂ¡c
marx at fedoraproject.org
Wed Jan 8 16:45:16 UTC 2014
Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=a709de06cd8f810b653613b07fba6fc13fc0fdf2
Commit: a709de06cd8f810b653613b07fba6fc13fc0fdf2
Parent: 3f7eed8b8b51e41b6dceab0a36886a0027141d12
Author: Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate: Wed Jan 8 17:42:41 2014 +0100
Committer: Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Jan 8 17:42:41 2014 +0100
fence_ipmilan: Improve readibility of verbose output
---
fence/agents/ipmilan/fence_ipmilan.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fence/agents/ipmilan/fence_ipmilan.py b/fence/agents/ipmilan/fence_ipmilan.py
index ece5d97..f711312 100644
--- a/fence/agents/ipmilan/fence_ipmilan.py
+++ b/fence/agents/ipmilan/fence_ipmilan.py
@@ -27,7 +27,7 @@ def get_power_status(_, options):
out = process.communicate()
process.stdout.close()
- options["debug_fh"].write(out)
+ options["debug_fh"].write(str(out) + "\n")
match = re.search('[Cc]hassis [Pp]ower is [\\s]*([a-zA-Z]{2,3})', str(out))
status = match.group(1) if match else None
@@ -65,7 +65,7 @@ def reboot_cycle(_, options):
out = process.communicate()
process.stdout.close()
- options["debug_fh"].write(out)
+ options["debug_fh"].write(str(out) + "\n")
return bool(re.search('chassis power control: cycle', str(out).lower()))
More information about the cluster-commits
mailing list