From a054a94d986f8f1f305e46d8bfbbbcda06754e16 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 10 Feb 2024 15:31:45 +1100 Subject: [PATCH] feat: puppet wrapper replace dot - set puppet wrapper to replace '.' with '_' in the branch name --- site/profiles/templates/base/scripts/puppetwrapper.py.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/profiles/templates/base/scripts/puppetwrapper.py.erb b/site/profiles/templates/base/scripts/puppetwrapper.py.erb index 57ca8b1..809fd71 100644 --- a/site/profiles/templates/base/scripts/puppetwrapper.py.erb +++ b/site/profiles/templates/base/scripts/puppetwrapper.py.erb @@ -11,7 +11,7 @@ def main(): if index + 1 < len(args): # Check if there's another argument after "-E" environment_value = args[index + 1] # Replace \ and - with _ - modified_environment_value = environment_value.replace("\\", "_").replace("-", "_").replace("/","_") + modified_environment_value = environment_value.replace("\\", "_").replace("-", "_").replace("/","_").replace(".","_") args[index + 1] = modified_environment_value # Construct the full puppet command with the modified args