Code Review
/
apex-tripleo-heat-templates.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c7ef3cc
)
Replace in AllowedResources
author
Clint Byrum
<clint@fewbar.com>
Tue, 14 May 2013 18:01:53 +0000
(11:01 -0700)
committer
Clint Byrum
<clint@fewbar.com>
Thu, 6 Jun 2013 16:25:27 +0000
(09:25 -0700)
merge.py
patch
|
blob
|
history
diff --git
a/merge.py
b/merge.py
index
5d634d6
..
7805b64
100644
(file)
--- a/
merge.py
+++ b/
merge.py
@@
-82,6
+82,11
@@
def fix_ref(item, old, new):
new_list[0] = new
item[k] = new_list
continue
+ if k == 'AllowedResources' and isinstance(v, list) and old in v:
+ while old in v:
+ pos = v.index(old)
+ v[pos] = new
+ continue
fix_ref(v, old, new)
elif isinstance(item, list):
copy_item = list(item)