From 810cc3c829db61eda0eeba2927f8e08ebcd462d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Maro=C5=A1i?= Date: Tue, 12 Oct 2021 09:02:05 +0200 Subject: [PATCH] Fix bust cache typo --- src/akamai_cache_buster/bustCache.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/akamai_cache_buster/bustCache.py b/src/akamai_cache_buster/bustCache.py index 4d7ed68..f150281 100644 --- a/src/akamai_cache_buster/bustCache.py +++ b/src/akamai_cache_buster/bustCache.py @@ -57,8 +57,9 @@ def createMetadata(paths, releases, appName): if (prefix == None): prefix = '' - splitPrefix f"apps" - metadata += f'\n' + splitPrefix = f"apps" + prefix += "/" + metadata += f'\n' metadata += 'now' metadata += '' for path in paths: @@ -100,7 +101,7 @@ def main(): initEdgeGridAuth() #get the data to use for cache busting - paths + paths = [] try: paths = getYMLFromUrl("https://console.redhat.com/config/main.yml").get(appName).get("frontend").get("paths") except: