Skip to content

Commit

Permalink
fix(runner): Don't treat the string "false" as true. (#2051)
Browse files Browse the repository at this point in the history
  • Loading branch information
kring authored May 17, 2022
1 parent f25d871 commit b67c7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/runners/templates/start-runner.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Write-Host "Retrieved /$environment/runner/enable-cloudwatch parameter - ($enab
$agent_mode=$parameters.where( {$_.Name -eq "/$environment/runner/agent-mode"}).value
Write-Host "Retrieved /$environment/runner/agent-mode parameter - ($agent_mode)"

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

0 comments on commit b67c7dc

Please sign in to comment.