feat: puppet wrapper replace dot

- set puppet wrapper to replace '.' with '_' in the branch name
This commit is contained in:
Ben Vincent 2024-02-10 15:31:45 +11:00
parent 6b11ea09c7
commit a054a94d98

View File

@ -11,7 +11,7 @@ def main():
if index + 1 < len(args): # Check if there's another argument after "-E" if index + 1 < len(args): # Check if there's another argument after "-E"
environment_value = args[index + 1] environment_value = args[index + 1]
# Replace \ and - with _ # 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 args[index + 1] = modified_environment_value
# Construct the full puppet command with the modified args # Construct the full puppet command with the modified args