summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorCalen Pennington <cpennington@wgen.net>2012-01-11 12:41:39 -0500
committerCalen Pennington <cpennington@wgen.net>2012-01-11 12:43:21 -0500
commita8ecc8eb162754991270c9e866af54489251f2dc (patch)
tree0092ef5020b0ea588e3a6d768cec874eca72f44b /src/sbin
parenta4259a04b8ded673ed79b41f3bd72f43b9d5e22f (diff)
downloadbcfg2-a8ecc8eb162754991270c9e866af54489251f2dc.tar.gz
bcfg2-a8ecc8eb162754991270c9e866af54489251f2dc.tar.bz2
bcfg2-a8ecc8eb162754991270c9e866af54489251f2dc.zip
Teach bcfg2-info to use the filemonitor specified in the config file
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-info8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 983677f72..df82739b4 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -103,11 +103,11 @@ def displayTrace(trace, num=80, sort=('time', 'calls')):
class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core):
"""Main class for bcfg2-info."""
- def __init__(self, repo, plgs, passwd, encoding, event_debug):
+ def __init__(self, repo, plgs, passwd, encoding, event_debug, filemonitor='default'):
cmd.Cmd.__init__(self)
try:
Bcfg2.Server.Core.Core.__init__(self, repo, plgs, passwd,
- encoding)
+ encoding, filemonitor)
if event_debug:
self.fam.debug = True
except Bcfg2.Server.Core.CoreInitError:
@@ -529,12 +529,12 @@ if __name__ == '__main__':
prof = profile.Profile()
loop = prof.runcall(infoCore, setup['repo'], setup['plugins'],
setup['password'], setup['encoding'],
- setup['event debug'])
+ setup['event debug'], setup['filemonitor'])
displayTrace(prof)
else:
if setup['profile']:
print("Profiling functionality not available.")
loop = infoCore(setup['repo'], setup['plugins'], setup['password'],
- setup['encoding'], setup['event debug'])
+ setup['encoding'], setup['event debug'], setup['filemonitor'])
loop.Run(setup['args'])