Merge "Fix support for --flagfile argument"

This commit is contained in:
Jenkins 2012-02-07 16:50:12 +00:00 committed by Gerrit Code Review
commit 0f3995d3cf

View File

@ -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