summaryrefslogtreecommitdiffstats
path: root/src/sbin/Bcfg2debug
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-02-01 16:59:44 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-02-01 16:59:44 +0000
commite87d1214557a7573e9ea5e9452b14ec8fcaa098f (patch)
tree54acf486723fbcebdd65b07e6531a4dac71b697c /src/sbin/Bcfg2debug
parentb6028c7db23503547bbba53aa597ccfffb97d0e6 (diff)
downloadbcfg2-e87d1214557a7573e9ea5e9452b14ec8fcaa098f.tar.gz
bcfg2-e87d1214557a7573e9ea5e9452b14ec8fcaa098f.tar.bz2
bcfg2-e87d1214557a7573e9ea5e9452b14ec8fcaa098f.zip
add -c support
(Logical change 1.199) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@850 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/Bcfg2debug')
-rw-r--r--src/sbin/Bcfg2debug7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sbin/Bcfg2debug b/src/sbin/Bcfg2debug
index 9a4a7e342..a5c15b939 100644
--- a/src/sbin/Bcfg2debug
+++ b/src/sbin/Bcfg2debug
@@ -3,6 +3,7 @@
__revision__ = '$Revision$'
'''This tool loads the Bcfg2 core into an interactive debugger'''
+from sys import argv
from time import sleep
from Bcfg2.Server.Core import Core
@@ -14,7 +15,11 @@ def input():
if __name__ == '__main__':
settings = {}
- core = Core('/etc/bcfg2.conf')
+ if '-c' in argv:
+ cfile = argv[-1]
+ else:
+ cfile = '/etc/bcfg2.conf'
+ core = Core(cfile)
while core.fam.fm.pending():
while core.fam.fm.pending():
core.fam.HandleEvent()