Archived
1
0

cosmetical changes

* Move definition of the YUM constant up the the other constants.
This commit is contained in:
Christoph Anton Mitterer 2012-10-09 03:41:22 +02:00
parent 5cffc02eba
commit 1dc0d65eb3

View File

@ -25,6 +25,9 @@ except ImportError:
from optparse import OptionParser
DEFAULT_TIMEOUT = 55
YUM = "/usr/bin/yum"
def end(status, message, perfdata=""):
@ -45,8 +48,6 @@ def end(status, message, perfdata=""):
sys.exit(UNKNOWN)
YUM = "/usr/bin/yum"
def check_yum_usable():
"""Checks that the YUM program and path are correct and usable - that the program exists and is executable, otherwise exits with error."""