summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)