add reverse flag to userconfig.cfg to turn around classes (host last)
This commit is contained in:
parent
81d8a074cc
commit
92a96343e1
@ -81,9 +81,16 @@ def workdir(directory):
|
|||||||
# key is the destination filename, values are all classes filenames that are used to
|
# key is the destination filename, values are all classes filenames that are used to
|
||||||
# build the file
|
# build the file
|
||||||
destfiles = {}
|
destfiles = {}
|
||||||
|
# FIXME: reverse_order should really be a bool in .cfg, implement variable types in cfg file
|
||||||
|
reverse_sort = False
|
||||||
|
try:
|
||||||
|
reverse_sort = (dir_config.get("Main", "reverse") == 'True')
|
||||||
|
except NoOptionError:
|
||||||
|
reverse_sort = False
|
||||||
|
|
||||||
|
|
||||||
# walk through all know classes in directory and find filenames
|
# walk through all know classes in directory and find filenames
|
||||||
for h in classchecks.__classes_for_host__():
|
for h in classchecks.__classes_for_host__(reverse_sort):
|
||||||
# build classes directory
|
# build classes directory
|
||||||
if h[0] != "":
|
if h[0] != "":
|
||||||
classdir = directory+"/"+h[0]+"_"+h[1]
|
classdir = directory+"/"+h[0]+"_"+h[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user