public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - [FENCE] Fixes #485700 - Fix of add support for LPAR/HMC v3
@ 2009-02-19 16:33 Marek Grác
  0 siblings, 0 replies; only message in thread
From: Marek Grác @ 2009-02-19 16:33 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f3cf9a2daa10da1f4817f98901a2d75e0c147eb2
Commit:        f3cf9a2daa10da1f4817f98901a2d75e0c147eb2
Parent:        042beb58391e331ca6345250a92e6eb2cc4f5d04
Author:        Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate:    Thu Feb 19 17:26:23 2009 +0100
Committer:     Marek 'marx' Grac <mgrac@redhat.com>
CommitterDate: Thu Feb 19 17:29:56 2009 +0100

[FENCE] Fixes #485700 - Fix of add support for LPAR/HMC v3

In RHEL 5.x there is no support for 'default' in fencing library. And 4 has to be passed in as "4".
---
 fence/agents/lib/fencing.py.py  |    1 -
 fence/agents/lpar/fence_lpar.py |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index f5f94b1..c12c962 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -103,7 +103,6 @@ all_opt = {
 		"getopt" : "H:",
 		"longopt" : "hmc-version",
 		"help" : "-H, --hmc-version=<version>   Force HMC version to use: 3, 4 (default)",
-		"default" : 4, 
 		"order" : 1 },
 	"ribcl" : {
 		"getopt" : "r:",
diff --git a/fence/agents/lpar/fence_lpar.py b/fence/agents/lpar/fence_lpar.py
index c87184c..d0664eb 100755
--- a/fence/agents/lpar/fence_lpar.py
+++ b/fence/agents/lpar/fence_lpar.py
@@ -92,6 +92,9 @@ def main():
 	if 0 == options.has_key("-c"):
 		options["-c"] = [ ":~>", "]\$" ]
 
+	if 0 == options.has_key("-H"):
+		options["-H"] = "4"
+
 	if 0 == options.has_key("-x"):
 		fail_usage("Failed: You have to use ssh connection (-x) to fence device")
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-19 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-19 16:33 cluster: RHEL5 - [FENCE] Fixes #485700 - Fix of add support for LPAR/HMC v3 Marek Grác

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).