Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad1888d

Browse files
committed
Merge pull request alphagov#87 from alphagov/bugfix-puppet-check-disabled
Fix Puppet task to check whether agent is disabled
2 parents 921fd99 + 837cd54 commit ad1888d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

puppet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def check_disabled():
3030
lockfile = '/var/lib/puppet/state/agent_disabled.lock'
3131

3232
with hide('running'):
33-
run('test -f {0} && echo DISABLED || echo ENABLED'.format(lockfile))
33+
sudo('test -f {0} && echo DISABLED || echo ENABLED'.format(lockfile))
3434

3535
@task
3636
def dryrun(*args):

0 commit comments

Comments
 (0)