aboutsummaryrefslogtreecommitdiffstats
path: root/merge.py
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-05-14 11:01:53 -0700
committerClint Byrum <clint@fewbar.com>2013-06-06 09:25:27 -0700
commit6defee322c98894b3229b2f32ef1f1e1695e77c1 (patch)
tree6fa0cdc2ba1256097c5d41c478fcd04b90131c38 /merge.py
parentc7ef3cc3b0c0fdce4c2634fbcf855c1bc8fe5c44 (diff)
Replace in AllowedResources
Diffstat (limited to 'merge.py')
-rw-r--r--merge.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/merge.py b/merge.py
index 5d634d61..7805b640 100644
--- 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)