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

Commit b67c7dc

Browse files
authored
fix(runner): Don't treat the string "false" as true. (#2051)
1 parent f25d871 commit b67c7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Write-Host "Retrieved /$environment/runner/enable-cloudwatch parameter - ($enab
3030
$agent_mode=$parameters.where( {$_.Name -eq "/$environment/runner/agent-mode"}).value
3131
Write-Host "Retrieved /$environment/runner/agent-mode parameter - ($agent_mode)"
3232

33-
if ($enable_cloudwatch_agent)
33+
if ($enable_cloudwatch_agent -eq "true")
3434
{
3535
Write-Host "Enabling CloudWatch Agent"
3636
& 'C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1' -a fetch-config -m ec2 -s -c "ssm:$environment-cloudwatch_agent_config_runner"

0 commit comments

Comments
 (0)