Support DependsOn

This commit is contained in:
Clint Byrum 2013-05-14 11:02:51 -07:00
parent 6defee322c
commit 621a4dd9ca
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ def fix_ref(item, old, new):
if k == 'Ref' and v == old:
item[k] = new
continue
if k == 'DependsOn' and v == old:
item[k] = new
continue
if k == 'Fn::GetAtt' and isinstance(v, list) and v[0] == old:
new_list = list(v)
new_list[0] = new