Update stackrc parser for Pike changes
The Pike stream has a new stanza in the stackrc that adds the cloud name to PS1 if the variable CLOUDPROMT_ENABLED is set, the if statement screws up the YODA stackrc parser. This just ignores that as we don't care about anything that's not the auth_url, username and password. Change-Id: Ia6fc2f9aed151d5a9d08ec00a25ba161bb93d624
This commit is contained in:
parent
7eb452b533
commit
9e7437ae44
|
@ -204,7 +204,16 @@ class Tools(object):
|
|||
with open(filepath) as stackrc:
|
||||
for line in stackrc:
|
||||
pair = line.split('=')
|
||||
if 'export' not in line and '#' not in line and '$(' not in line:
|
||||
if 'export' in line:
|
||||
continue
|
||||
elif '#' in line:
|
||||
continue
|
||||
elif 'if' in line or 'fi' in line:
|
||||
continue
|
||||
elif line == '\n':
|
||||
continue
|
||||
|
||||
if '$(' not in line:
|
||||
values[pair[0].strip()] = pair[1].strip()
|
||||
elif '$(' in line and 'for key' not in line:
|
||||
values[pair[0].strip()] = \
|
||||
|
|
Loading…
Reference in New Issue