Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=ea615b438... Commit: ea615b438ee7bcef77bed9add7a7fe8760a1b7fc Parent: c84df1578d288fb23e2cd72e1704f7c4234b7fd4 Author: Marek 'marx' Grac mgrac@redhat.com AuthorDate: Wed Apr 16 17:21:57 2014 +0200 Committer: Marek 'marx' Grac mgrac@redhat.com CommitterDate: Wed Apr 23 17:39:06 2014 +0200
[cleanup] Remove method log_command() from FencingSnmp as it was replaced by logging.debug()
--- fence/agents/lib/fencing_snmp.py.py | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/fence/agents/lib/fencing_snmp.py.py b/fence/agents/lib/fencing_snmp.py.py index 997e2da..5f03e80 100644 --- a/fence/agents/lib/fencing_snmp.py.py +++ b/fence/agents/lib/fencing_snmp.py.py @@ -20,10 +20,6 @@ class FencingSnmp: def __init__(self, options): self.options = options
- # Log message if user set verbose option - def log_command(self, message): - logging.debug("%s\n", message) - def quote_for_run(self, string): return string.replace(r"'", "'\''")
@@ -88,7 +84,7 @@ class FencingSnmp:
def run_command(self, command, additional_timemout=0): try: - self.log_command(command) + logging.debug("%s\n", command)
(res_output, res_code) = pexpect.run(command, int(self.options["--shell-timeout"]) + @@ -98,7 +94,7 @@ class FencingSnmp: if res_code == None: fail(EC_TIMED_OUT)
- self.log_command(res_output) + logging.debug("%s\n", res_output)
if (res_code!=0) or (re.search("^Error ", res_output, re.MULTILINE) != None): fail_usage("Returned %d: %s"% (res_code, res_output))
cluster-commits@lists.fedorahosted.org