Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 7cdef21

Browse files
kringnpalm
authored andcommitted
fix: Remove extraneous slashes from SSM paths, other typos (#2765)
* Remove extraneous slash. * Remove more extraneous slashes.
1 parent 2fd1e16 commit 7cdef21

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: modules/runners/templates/start-runner.ps1

+10-10
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ $environment=$tags.Tags.where( {$_.Key -eq 'ghr:environment'}).value
2121
Write-Host "Reteieved ghr:environment tag - ($environment)"
2222

2323
$ssm_config_path=$tags.Tags.where( {$_.Key -eq 'ghr:ssm_config_path'}).value
24-
Write-Host "Reteieved ghr:ssm_config_path tag - ($ssm_config_path)"
24+
Write-Host "Retrieved ghr:ssm_config_path tag - ($ssm_config_path)"
2525

26-
$parameters=$(aws ssm get-parameters-by-path --path "/$ssm_config_path" --region "$Region" --query "Parameters[*].{Name:Name,Value:Value}") | ConvertFrom-Json
26+
$parameters=$(aws ssm get-parameters-by-path --path "$ssm_config_path" --region "$Region" --query "Parameters[*].{Name:Name,Value:Value}") | ConvertFrom-Json
2727
Write-Host "Retrieved parameters from AWS SSM"
2828

29-
$run_as=$parameters.where( {$_.Name -eq "/$ssm_config_path/run_as"}).value
30-
Write-Host "Retrieved /$ssm_config_path/run_as parameter - ($run_as)"
29+
$run_as=$parameters.where( {$_.Name -eq "$ssm_config_path/run_as"}).value
30+
Write-Host "Retrieved $ssm_config_path/run_as parameter - ($run_as)"
3131

32-
$enable_cloudwatch_agent=$parameters.where( {$_.Name -eq "/$ssm_config_pathr/enable_cloudwatch"}).value
33-
Write-Host "Retrieved /$ssm_config_path/enable_cloudwatch parameter - ($enable_cloudwatch_agent)"
32+
$enable_cloudwatch_agent=$parameters.where( {$_.Name -eq "$ssm_config_path/enable_cloudwatch"}).value
33+
Write-Host "Retrieved $ssm_config_path/enable_cloudwatch parameter - ($enable_cloudwatch_agent)"
3434

35-
$agent_mode=$parameters.where( {$_.Name -eq "/$ssm_config_path/agent_mode"}).value
36-
Write-Host "Retrieved /$ssm_config_path/agent_mode parameter - ($agent_mode)"
35+
$agent_mode=$parameters.where( {$_.Name -eq "$ssm_config_path/agent_mode"}).value
36+
Write-Host "Retrieved $ssm_config_path/agent_mode parameter - ($agent_mode)"
3737

38-
$token_path=$parameters.where( {$_.Name -eq "/$ssm_config_path/token_path"}).value
39-
Write-Host "Retrieved /$ssm_config_path/token_path parameter - ($token_path)"
38+
$token_path=$parameters.where( {$_.Name -eq "$ssm_config_path/token_path"}).value
39+
Write-Host "Retrieved $ssm_config_path/token_path parameter - ($token_path)"
4040

4141

4242
if ($enable_cloudwatch_agent -eq "true")

0 commit comments

Comments
 (0)