Changeset 1420 for trunk/packages/invirt-base/scripts
- Timestamp:
- Oct 29, 2008, 12:44:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-base/scripts/invirt-getconf
r1330 r1420 17 17 """ 18 18 19 from invirt .config import load19 from invirt import config 20 20 from sys import argv, exit, stderr, stdout 21 21 from optparse import OptionParser … … 27 27 parser = OptionParser(usage = '%prog [options] key', 28 28 description = __doc__.strip().split('\n\n')[0]) 29 parser.add_option('-s', '--src',30 default = '/etc/invirt/master.yaml',31 help = 'the source YAML configuration file to read from')32 parser.add_option('-c', '--cache',33 default = '/var/lib/invirt/invirt.json',34 help = 'path to the JSON cache')35 29 parser.add_option('-r', '--refresh', 36 30 action = 'store_true', … … 48 42 components = [] 49 43 50 conf = load(opts.src, opts.cache,opts.refresh)44 conf = config.load(opts.refresh) 51 45 for i, component in enumerate(components): 52 46 progress = '.'.join(components[:i])
Note: See TracChangeset
for help on using the changeset viewer.