Support DependsOn
authorClint Byrum <clint@fewbar.com>
Tue, 14 May 2013 18:02:51 +0000 (11:02 -0700)
committerClint Byrum <clint@fewbar.com>
Thu, 6 Jun 2013 16:25:27 +0000 (09:25 -0700)
merge.py

index 7805b64..b1443f2 100644 (file)
--- a/merge.py
+++ b/merge.py
@@ -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