Skip to content

Commit

Permalink
Fix template extension retrivial
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Carrogu <[email protected]>
  • Loading branch information
lukeseawalker committed Sep 11, 2020
1 parent 01c827f commit 304fd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/upload-cfn-templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_template_extension(templates_dir, template_name):
extension = file_name.split(".cfn.")[-1]
if extension not in {"json", "yaml"}:
raise Exception("Found invalid extension for template {}: {}".format(template_name, extension))
return extension
return ".cfn." + extension


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

0 comments on commit 304fd6c

Please sign in to comment.