Ignore:
Timestamp:
Oct 29, 2008, 12:44:42 AM (16 years ago)
Author:
price
Message:

eliminate choice of source and cache files in invirt config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-base/scripts/invirt-getconf

    r1330 r1420  
    1717"""
    1818
    19 from invirt.config import load
     19from invirt import config
    2020from sys import argv, exit, stderr, stdout
    2121from optparse import OptionParser
     
    2727        parser = OptionParser(usage = '%prog [options] key',
    2828                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')
    3529        parser.add_option('-r', '--refresh',
    3630                action = 'store_true',
     
    4842            components = []
    4943
    50         conf = load(opts.src, opts.cache, opts.refresh)
     44        conf = config.load(opts.refresh)
    5145        for i, component in enumerate(components):
    5246            progress = '.'.join(components[:i])
Note: See TracChangeset for help on using the changeset viewer.