fence-agents: master - fencing: Add support for --delay for all python SNMP fence agents

Marek GrĂ¡c marx at fedoraproject.org
Wed Apr 23 15:50:48 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=d2cdfc62d32402f264a8828cd519f0182e2a5645
Commit:        d2cdfc62d32402f264a8828cd519f0182e2a5645
Parent:        a957c2004a0fa423de2c3ae6c8bbb50907cb8a79
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Wed Apr 23 17:45:53 2014 +0200
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Apr 23 17:45:53 2014 +0200

fencing: Add support for --delay for all python SNMP fence agents

---
 fence/agents/lib/fencing_snmp.py.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fence/agents/lib/fencing_snmp.py.py b/fence/agents/lib/fencing_snmp.py.py
index 5f03e80..a034bd2 100644
--- a/fence/agents/lib/fencing_snmp.py.py
+++ b/fence/agents/lib/fencing_snmp.py.py
@@ -5,7 +5,7 @@
 import re, pexpect
 import logging
 from fencing import *
-from fencing import fail, fail_usage, EC_TIMED_OUT
+from fencing import fail, fail_usage, EC_TIMED_OUT, run_delay
 
 __all__ = [ 'FencingSnmp' ]
 
@@ -19,6 +19,7 @@ BUILD_DATE = ""
 class FencingSnmp:
 	def __init__(self, options):
 		self.options = options
+		run_delay(options)
 
 	def quote_for_run(self, string):
 		return string.replace(r"'", "'\\''")


More information about the cluster-commits mailing list