diff options
author | 2013-05-14 11:01:53 -0700 | |
---|---|---|
committer | 2013-06-06 09:25:27 -0700 | |
commit | 6defee322c98894b3229b2f32ef1f1e1695e77c1 (patch) | |
tree | 6fa0cdc2ba1256097c5d41c478fcd04b90131c38 /merge.py | |
parent | c7ef3cc3b0c0fdce4c2634fbcf855c1bc8fe5c44 (diff) |
Replace in AllowedResources
Diffstat (limited to 'merge.py')
-rw-r--r-- | merge.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |