Permalink
Browse files

Merge "Update stackrc parser for Pike changes"

  • Loading branch information...
Jenkins authored and openstack-gerrit committed Oct 10, 2017
2 parents c5c558e + 9e7437a commit 78e068fbe8905f1848c06118e7d8566b6279a8dc
Showing with 10 additions and 1 deletion.
  1. +10 −1 browbeat/tools.py
View
@@ -206,7 +206,16 @@ def load_stackrc(self, filepath):
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()] = \

0 comments on commit 78e068f

Please sign in to comment.