~ev/ubuntu-ci-services-itself/charms-in-config-manager

Viewing all changes in revision 148.

  • Committer: Chris Johnston
  • Author(s): Andy Doan
  • Date: 2014-01-27 09:21:16 UTC
  • mfrom: (147.1.2 ubuntu-ci-services-itself)
  • Revision ID: chris_johnston-20140127092116-r8xk5y6tg6get1zv
[r=Chris Johnston] cli: improve loading of configuration data

The config data was being loaded at import time before the CLI
could even try deal with the usage statement. This changes thing
so the loading of the configuration is done after argparse.

While doing this change I consolidated the required configuration
into a single file. That should be easier to deal with.

As a result of the change, the imports used by some of the modules
needed to be updated so they use "utils" and not just import objects
from utils into each module's namespace.

This allows our test cases to now run without needing a special
config file.
  from Andy Doan

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: