Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9343 from alphagov/fix-array-abuse
Browse files Browse the repository at this point in the history
Stop using arrays for exec's 'command' attribute
  • Loading branch information
rhowe-gds authored Jul 5, 2019
2 parents 2893a61 + 7b3db8e commit 2b2bcc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/govuk_scripts/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
# Make sure boto3 is installed for Python3 as required by govuk_node_list_aws
exec { 'check_boto':
path => ['/usr/bin', '/usr/sbin'],
command => ['/usr/bin/pip3 install boto3'],
command => '/usr/bin/pip3 install boto3',
require => Class['base::packages'],
unless => ['test -d /usr/local/lib/python3.4/dist-packages/boto3'],
unless => 'test -d /usr/local/lib/python3.4/dist-packages/boto3',
}

$app_domain_internal = hiera('app_domain_internal')
Expand Down
4 changes: 2 additions & 2 deletions modules/monitoring/manifests/checks.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

exec { 'install_boto':
path => ['/opt/python2.7/bin', '/usr/bin', '/usr/sbin'],
command => ['/opt/python2.7/bin/pip install boto'],
command => '/opt/python2.7/bin/pip install boto',
require => Class['::govuk_jenkins::packages::govuk_python'],
}

exec { 'install_boto3':
path => ['/opt/python2.7/bin', '/usr/bin', '/usr/sbin'],
command => ['/opt/python2.7/bin/pip install boto3'],
command => '/opt/python2.7/bin/pip install boto3',
require => Class['::govuk_jenkins::packages::govuk_python'],
}

Expand Down

0 comments on commit 2b2bcc8

Please sign in to comment.