From 304fd6cde0557b9cabc1c3cb5af6023e4199a651 Mon Sep 17 00:00:00 2001 From: Luca Carrogu Date: Fri, 11 Sep 2020 14:34:19 +0200 Subject: [PATCH] Fix template extension retrivial Signed-off-by: Luca Carrogu --- util/upload-cfn-templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/upload-cfn-templates.py b/util/upload-cfn-templates.py index 81cfacd137..37900f14e9 100644 --- a/util/upload-cfn-templates.py +++ b/util/upload-cfn-templates.py @@ -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):