mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47820 from Ch3LL/mac_system
Remove output_loglevel in mac_system module
This commit is contained in:
commit
09e8c5f0cd
1 changed files with 3 additions and 5 deletions
|
@ -74,8 +74,7 @@ def _atrun_enabled():
|
|||
# Collect information on service: will raise an error if it fails
|
||||
salt.utils.mac_utils.launchctl('list',
|
||||
label,
|
||||
return_stdout=True,
|
||||
output_loglevel='quiet')
|
||||
return_stdout=True)
|
||||
return True
|
||||
except CommandExecutionError:
|
||||
return False
|
||||
|
@ -111,9 +110,8 @@ def _enable_atrun():
|
|||
return False
|
||||
|
||||
salt.utils.mac_utils.launchctl('enable',
|
||||
'system/{0}'.format(label),
|
||||
output_loglevel='quiet')
|
||||
salt.utils.mac_utils.launchctl('load', path, output_loglevel='quiet')
|
||||
'system/{0}'.format(label))
|
||||
salt.utils.mac_utils.launchctl('load', path)
|
||||
return _atrun_enabled()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue