This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE3 - fence_snmp_*: Add missed sys.path.apend to SNMPagents
- From: Jan Friesse <honzaf at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Sun, 22 Mar 2009 14:24:45 +0000 (UTC)
- Subject: cluster: STABLE3 - fence_snmp_*: Add missed sys.path.apend to SNMPagents
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ecf592f5afbe11aaa42a4ca9b3661a508e8fe1f3
Commit: ecf592f5afbe11aaa42a4ca9b3661a508e8fe1f3
Parent: 8dacf8c1365734b9c59a956d0dc3ef373a85ef8a
Author: Jan Friesse <jfriesse@redhat.com>
AuthorDate: Sun Mar 22 15:22:03 2009 +0100
Committer: Jan Friesse <jfriesse@redhat.com>
CommitterDate: Sun Mar 22 15:24:18 2009 +0100
fence_snmp_*: Add missed sys.path.apend to SNMP agents
If fencing.py and fencing_snmp.py is not installed in
Python's search path, Python based fence agent will fall.
This was (sadly) the case of SNMP based agents.
This patch add sys.path.append to start of file, so
everything should work now.
---
fence/agents/apc_snmp/fence_apc_snmp.py | 1 +
fence/agents/cisco_mds/fence_cisco_mds.py | 1 +
fence/agents/ibmblade/fence_ibmblade.py | 1 +
fence/agents/ifmib/fence_ifmib.py | 1 +
fence/agents/intelmodular/fence_intelmodular.py | 1 +
5 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/fence/agents/apc_snmp/fence_apc_snmp.py b/fence/agents/apc_snmp/fence_apc_snmp.py
index 8ffd7fc..8cdb169 100644
--- a/fence/agents/apc_snmp/fence_apc_snmp.py
+++ b/fence/agents/apc_snmp/fence_apc_snmp.py
@@ -9,6 +9,7 @@
# MN:AP7951 HR:B2) - SNMP v1
import sys, re, pexpect
+sys.path.append("@FENCEAGENTSLIBDIR@")
from fencing import *
from fencing_snmp import *
diff --git a/fence/agents/cisco_mds/fence_cisco_mds.py b/fence/agents/cisco_mds/fence_cisco_mds.py
index 177c3b1..76a45d4 100644
--- a/fence/agents/cisco_mds/fence_cisco_mds.py
+++ b/fence/agents/cisco_mds/fence_cisco_mds.py
@@ -7,6 +7,7 @@
# with BIOS 1.0.16, kickstart 4.1(1c), system 4.1(1c)
import sys, re, pexpect
+sys.path.append("@FENCEAGENTSLIBDIR@")
from fencing import *
from fencing_snmp import *
diff --git a/fence/agents/ibmblade/fence_ibmblade.py b/fence/agents/ibmblade/fence_ibmblade.py
index 3c9ecf1..073da78 100644
--- a/fence/agents/ibmblade/fence_ibmblade.py
+++ b/fence/agents/ibmblade/fence_ibmblade.py
@@ -1,6 +1,7 @@
#!/usr/bin/python
import sys, re, pexpect
+sys.path.append("@FENCEAGENTSLIBDIR@")
from fencing import *
from fencing_snmp import *
diff --git a/fence/agents/ifmib/fence_ifmib.py b/fence/agents/ifmib/fence_ifmib.py
index 766a96d..0f955ac 100644
--- a/fence/agents/ifmib/fence_ifmib.py
+++ b/fence/agents/ifmib/fence_ifmib.py
@@ -9,6 +9,7 @@
# Only lance if is visible
import sys, re, pexpect
+sys.path.append("@FENCEAGENTSLIBDIR@")
from fencing import *
from fencing_snmp import *
diff --git a/fence/agents/intelmodular/fence_intelmodular.py b/fence/agents/intelmodular/fence_intelmodular.py
index 8cfa0ae..ea2453a 100644
--- a/fence/agents/intelmodular/fence_intelmodular.py
+++ b/fence/agents/intelmodular/fence_intelmodular.py
@@ -12,6 +12,7 @@
# Thanks Matthew Kent for original agent and testing.
import sys, re, pexpect
+sys.path.append("@FENCEAGENTSLIBDIR@")
from fencing import *
from fencing_snmp import *