Skip to content

Commit

Permalink
Fix bust cache typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Oct 12, 2021
1 parent 253e856 commit 810cc3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/akamai_cache_buster/bustCache.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ def createMetadata(paths, releases, appName):
if (prefix == None):
prefix = ''

splitPrefix f"apps"
metadata += f'<match:recursive-dirs value=\"apps/{prefix + '/'}{appName}\">\n'
splitPrefix = f"apps"
prefix += "/"
metadata += f'<match:recursive-dirs value=\"apps/{prefix}{appName}\">\n'
metadata += '<revalidate>now</revalidate>'
metadata += '</match:recursive-dirs>'
for path in paths:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 810cc3c

Please sign in to comment.