diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2012-10-15 01:40:25 +0100 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2012-11-04 21:37:39 +0000 |
| commit | efede80046e0504dc8a68ab5447f97b05c02dd7a (patch) | |
| tree | 91d38f5b23a25efc321b6df8e038444e07347bad /tools | |
| parent | dd086638b8c6e43f275fc45b3fc7df2de90bb2c2 (diff) | |
| download | nova-efede80046e0504dc8a68ab5447f97b05c02dd7a.tar.gz nova-efede80046e0504dc8a68ab5447f97b05c02dd7a.tar.xz nova-efede80046e0504dc8a68ab5447f97b05c02dd7a.zip | |
Move parse_args to nova.config
The flags module will eventually be removed and this is a first step
towards that.
Change-Id: I729b08900e53e2ae6db10633dcff3be59720fa6f
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/xenserver/destroy_cached_images.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/xenserver/destroy_cached_images.py b/tools/xenserver/destroy_cached_images.py index dd6e91adc..a9045cd61 100644 --- a/tools/xenserver/destroy_cached_images.py +++ b/tools/xenserver/destroy_cached_images.py @@ -25,6 +25,7 @@ POSSIBLE_TOPDIR = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'nova', '__init__.py')): sys.path.insert(0, POSSIBLE_TOPDIR) +from nova import config from nova import flags from nova.openstack.common import cfg from nova.openstack.common import log as logging @@ -47,7 +48,7 @@ FLAGS.register_cli_opts(destroy_opts) def main(): - flags.parse_args(sys.argv) + config.parse_args(sys.argv) utils.monkey_patch() xenapi = xenapi_driver.XenAPIDriver() |
