From efede80046e0504dc8a68ab5447f97b05c02dd7a Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 15 Oct 2012 01:40:25 +0100 Subject: Move parse_args to nova.config The flags module will eventually be removed and this is a first step towards that. Change-Id: I729b08900e53e2ae6db10633dcff3be59720fa6f --- tools/xenserver/destroy_cached_images.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') 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() -- cgit