diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-03-18 01:45:35 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-03-18 01:45:35 +0000 |
commit | 5afc6fe352329d1bf1e4fbf7e9dbc749dca380b7 (patch) | |
tree | 0623674d6408379f81005a2bce82518661d4eada /src/sbin/bcfg2-info | |
parent | 9de6664fb57c22fbf947786154ab346d9c0300fa (diff) | |
download | bcfg2-5afc6fe352329d1bf1e4fbf7e9dbc749dca380b7.tar.gz bcfg2-5afc6fe352329d1bf1e4fbf7e9dbc749dca380b7.tar.bz2 bcfg2-5afc6fe352329d1bf1e4fbf7e9dbc749dca380b7.zip |
Fix debug mode after profiling updates
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5126 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-info')
-rwxr-xr-x | src/sbin/bcfg2-info | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 42eeb73fb..1f5fc7913 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -297,6 +297,7 @@ def main(repo, plugins, password, encoding, debug, args=[]): raise SystemExit(0) else: loop.do_loop() + return loop if __name__ == '__main__': Bcfg2.Logger.setup_logging('bcfg2-info', to_syslog=False) @@ -314,8 +315,8 @@ if __name__ == '__main__': setup.parse(sys.argv[1:]) print setup if not setup['profile']: - main(setup['repo'], setup['plugins'], setup['password'], setup['encoding'], - '-d' in sys.argv, []) + loop = main(setup['repo'], setup['plugins'], setup['password'], + setup['encoding'], '-d' in sys.argv, []) else: import hotshot, hotshot.stats prof = hotshot.Profile(setup['profile']) |