From 6defee322c98894b3229b2f32ef1f1e1695e77c1 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Tue, 14 May 2013 11:01:53 -0700 Subject: Replace in AllowedResources --- merge.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'merge.py') 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) -- cgit 1.2.3-korg