From 94706e7a494c92db5473b0a9fe8df2510a2b07fa Mon Sep 17 00:00:00 2001 From: Nayeem Syed Date: Sat, 12 Jul 2014 02:01:18 +0100 Subject: [PATCH] fix(contrib/ec2): add json extension to cloudformation template The CloudFormation Template has a .template extension although its a json file. This makes it difficult to parse/edit it as editors dont recognize it as JSON file. So added the .json extension behind its name and also updated gen-json.py which uses it. --- contrib/ec2/{deis.template => deis.template.json} | 0 contrib/ec2/gen-json.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename contrib/ec2/{deis.template => deis.template.json} (100%) diff --git a/contrib/ec2/deis.template b/contrib/ec2/deis.template.json similarity index 100% rename from contrib/ec2/deis.template rename to contrib/ec2/deis.template.json diff --git a/contrib/ec2/gen-json.py b/contrib/ec2/gen-json.py index 53543da9e9..f4f7f383b9 100755 --- a/contrib/ec2/gen-json.py +++ b/contrib/ec2/gen-json.py @@ -2,7 +2,7 @@ import json import os -template = json.load(open("deis.template",'r')) +template = json.load(open("deis.template.json",'r')) with open('../coreos/user-data','r') as f: lines = f.readlines()