Skip to content

Commit 304fd6c

Browse files
committed
Fix template extension retrivial
Signed-off-by: Luca Carrogu <[email protected]>
1 parent 01c827f commit 304fd6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/upload-cfn-templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_template_extension(templates_dir, template_name):
3535
extension = file_name.split(".cfn.")[-1]
3636
if extension not in {"json", "yaml"}:
3737
raise Exception("Found invalid extension for template {}: {}".format(template_name, extension))
38-
return extension
38+
return ".cfn." + extension
3939

4040

4141
def put_object_to_s3(s3_client, bucket, key, region, data, template_name):

0 commit comments

Comments
 (0)