This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fence-agents: master - fence_rsa: fix problem with ssh on somemachines


Gitweb:        http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=c1e7b808adad13794661f8f0a790c9746a8a782c
Commit:        c1e7b808adad13794661f8f0a790c9746a8a782c
Parent:        b332199a29ecad045384fcd1388c50c66a9f552f
Author:        Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate:    Fri Apr 3 09:19:04 2009 +0200
Committer:     Marek 'marx' Grac <mgrac@redhat.com>
CommitterDate: Fri Apr 3 09:19:04 2009 +0200

fence_rsa: fix problem with ssh on some machines

We need to ignore configuration file.
---
 fence/agents/rsa/fence_rsa.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/fence/agents/rsa/fence_rsa.py b/fence/agents/rsa/fence_rsa.py
index cf736c9..8683e38 100644
--- a/fence/agents/rsa/fence_rsa.py
+++ b/fence/agents/rsa/fence_rsa.py
@@ -53,9 +53,7 @@ def main():
 		options["-c"] = ">"
 		
 	# This device will not allow us to login even with LANG=C
-#	os.unsetenv("LANG")
-	if "LANG" in os.environ:
-		del os.environ["LANG"]
+	options["ssh_options"] = "-F /dev/null"
 	
 	##
 	## Operate the fencing device


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]