diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-05-16 22:27:36 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-05-16 22:27:36 +0000 |
| commit | 5d90b39c36e8e8e1db82318e1d43129a8d2e1108 (patch) | |
| tree | 8fa714df0ed7ffb38d5906e0f16308c3a86a3d9d /nova/utils.py | |
| parent | 3f9c617f6e801b322470dadd53da8f89406d5cf9 (diff) | |
| parent | 7e3e9b8e9cea4f1bf78d127ffb915b79c854fdbe (diff) | |
Merge "Remove old flagfile support."
Diffstat (limited to 'nova/utils.py')
| -rw-r--r-- | nova/utils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/utils.py b/nova/utils.py index 9577ff269..af55bdb2e 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -284,12 +284,12 @@ def novadir(): return os.path.abspath(nova.__file__).split('nova/__init__.py')[0] -def default_flagfile(filename='nova.conf', args=None): +def default_cfgfile(filename='nova.conf', args=None): if args is None: args = sys.argv for arg in args: - if arg.find('flagfile') != -1: - return arg[arg.index('flagfile') + len('flagfile') + 1:] + if arg.find('config-file') != -1: + return arg[arg.index('config-file') + len('config-file') + 1:] else: if not os.path.isabs(filename): # turn relative filename into an absolute path @@ -300,8 +300,8 @@ def default_flagfile(filename='nova.conf', args=None): if not os.path.exists(filename): filename = '/etc/nova/nova.conf' if os.path.exists(filename): - flagfile = '--flagfile=%s' % filename - args.insert(1, flagfile) + cfgfile = '--config-file=%s' % filename + args.insert(1, cfgfile) return filename |
