From c716c94d1db26faa59332340e9eabe03b3d41d1b Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Tue, 7 Feb 2012 15:49:13 +0000 Subject: Fix support for --flagfile argument Recent changes broke support for the --flagfile argument. It would attempt to find the argument and then pull off the filename portion, but it would only skip one letter, instead of the full argument name. The resulting error would be: Change-Id: Ic252b0c778774a7ea3e24a9ed8b182deb5987f65 OSError: [Errno 2] No such file or directory: 'lagfile=../nova.conf' --- nova/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/utils.py b/nova/utils.py index a98897d82..f9ffe3adc 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -325,7 +325,7 @@ def default_flagfile(filename='nova.conf', args=None): args = sys.argv for arg in args: if arg.find('flagfile') != -1: - return arg[arg.index('flagfile') + 1:] + return arg[arg.index('flagfile') + len('flagfile') + 1:] else: if not os.path.isabs(filename): # turn relative filename into an absolute path -- cgit