Merge pull request 'feat: puppet wrapper replace dot' (#108) from neoloc/puppetwrapper_dot into develop
Reviewed-on: unkinben/puppet-prod#108
This commit is contained in:
commit
4bce524b49
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user