Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=509929508... Commit: 5099295082968d62a53452642ee8dbe02b6b0e32 Parent: 28742ec6688175c8af15475e5bc8333337bce494 Author: Marek 'marx' Grac mgrac@redhat.com AuthorDate: Wed Apr 9 17:17:11 2014 +0200 Committer: Marek 'marx' Grac mgrac@redhat.com CommitterDate: Wed Apr 9 17:17:11 2014 +0200
[cleanup] remove LOG_MODE_*
These constants can be removed because they were replaced by logging.* subsystem. --- fence/agents/amt/fence_amt.py | 2 +- fence/agents/cisco_ucs/fence_cisco_ucs.py | 2 +- fence/agents/eps/fence_eps.py | 2 +- fence/agents/ipmilan/fence_ipmilan.py | 2 +- fence/agents/lib/fencing.py.py | 3 --- fence/agents/lib/fencing_snmp.py.py | 2 +- fence/agents/rhevm/fence_rhevm.py | 2 +- fence/agents/vmware/fence_vmware.py | 2 +- 8 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/fence/agents/amt/fence_amt.py b/fence/agents/amt/fence_amt.py index 0eb6caf..fdf2db3 100644 --- a/fence/agents/amt/fence_amt.py +++ b/fence/agents/amt/fence_amt.py @@ -6,7 +6,7 @@ import atexit from pipes import quote sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * -from fencing import fail_usage, is_executable, SUDO_PATH, LOG_MODE_VERBOSE +from fencing import fail_usage, is_executable, SUDO_PATH
#BEGIN_VERSION_GENERATION RELEASE_VERSION="Fence agent for Intel AMT" diff --git a/fence/agents/cisco_ucs/fence_cisco_ucs.py b/fence/agents/cisco_ucs/fence_cisco_ucs.py index de0f681..2d4eaa8 100644 --- a/fence/agents/cisco_ucs/fence_cisco_ucs.py +++ b/fence/agents/cisco_ucs/fence_cisco_ucs.py @@ -7,7 +7,7 @@ import time import atexit sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * -from fencing import fail, EC_STATUS, EC_LOGIN_DENIED, LOG_MODE_VERBOSE +from fencing import fail, EC_STATUS, EC_LOGIN_DENIED
#BEGIN_VERSION_GENERATION RELEASE_VERSION="New Cisco UCS Agent - test release on steroids" diff --git a/fence/agents/eps/fence_eps.py b/fence/agents/eps/fence_eps.py index 3a52b3c..5efc8df 100644 --- a/fence/agents/eps/fence_eps.py +++ b/fence/agents/eps/fence_eps.py @@ -9,7 +9,7 @@ import logging import atexit sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * -from fencing import fail, fail_usage, EC_LOGIN_DENIED, EC_TIMED_OUT, LOG_MODE_VERBOSE +from fencing import fail, fail_usage, EC_LOGIN_DENIED, EC_TIMED_OUT
#BEGIN_VERSION_GENERATION RELEASE_VERSION="ePowerSwitch 8M+ (eps)" diff --git a/fence/agents/ipmilan/fence_ipmilan.py b/fence/agents/ipmilan/fence_ipmilan.py index b120d6b..a57efb7 100644 --- a/fence/agents/ipmilan/fence_ipmilan.py +++ b/fence/agents/ipmilan/fence_ipmilan.py @@ -6,7 +6,7 @@ import atexit from pipes import quote sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * -from fencing import SUDO_PATH, LOG_MODE_VERBOSE, fail_usage, is_executable +from fencing import SUDO_PATH, fail_usage, is_executable
#BEGIN_VERSION_GENERATION RELEASE_VERSION="" diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py index 73c2c4a..f243202 100644 --- a/fence/agents/lib/fencing.py.py +++ b/fence/agents/lib/fencing.py.py @@ -15,9 +15,6 @@ BUILD_DATE = "March, 2008" __all__ = [ 'atexit_handler', 'check_input', 'process_input', 'all_opt', 'show_docs', 'fence_login', 'fence_action' ]
-LOG_MODE_VERBOSE = 100 -LOG_MODE_QUIET = 0 - EC_GENERIC_ERROR = 1 EC_BAD_ARGS = 2 EC_LOGIN_DENIED = 3 diff --git a/fence/agents/lib/fencing_snmp.py.py b/fence/agents/lib/fencing_snmp.py.py index d8dd746..9ebdcbc 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, LOG_MODE_VERBOSE +from fencing import fail, fail_usage, EC_TIMED_OUT
__all__ = [ 'FencingSnmp' ]
diff --git a/fence/agents/rhevm/fence_rhevm.py b/fence/agents/rhevm/fence_rhevm.py index 767c098..54af81b 100644 --- a/fence/agents/rhevm/fence_rhevm.py +++ b/fence/agents/rhevm/fence_rhevm.py @@ -6,7 +6,7 @@ import logging import atexit sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * -from fencing import fail, EC_STATUS, LOG_MODE_VERBOSE +from fencing import fail, EC_STATUS
#BEGIN_VERSION_GENERATION RELEASE_VERSION="New RHEV-M Agent - test release on steroids" diff --git a/fence/agents/vmware/fence_vmware.py b/fence/agents/vmware/fence_vmware.py index c9310fb..b5cca48 100644 --- a/fence/agents/vmware/fence_vmware.py +++ b/fence/agents/vmware/fence_vmware.py @@ -27,7 +27,7 @@ import logging import atexit sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * -from fencing import fail, fail_usage, EC_TIMED_OUT, LOG_MODE_VERBOSE +from fencing import fail, fail_usage, EC_TIMED_OUT
#BEGIN_VERSION_GENERATION RELEASE_VERSION="VMware Agent using VI Perl API and/or VIX vmrun command"