mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #39633 from terminalmage/fix-systemd-typo
Fix misspelled argument in salt.modules.systemd.disable()
This commit is contained in:
commit
fc970b6a16
2 changed files with 4 additions and 1 deletions
|
@ -889,7 +889,7 @@ def disable(name, **kwargs): # pylint: disable=unused-argument
|
|||
return __salt__['cmd.retcode'](
|
||||
_systemctl_cmd('disable', name, systemd_scope=True),
|
||||
python_shell=False,
|
||||
ignore_recode=True) == 0
|
||||
ignore_retcode=True) == 0
|
||||
|
||||
|
||||
# The unused kwargs argument is required to maintain consistency with the API
|
||||
|
|
|
@ -514,6 +514,9 @@ class SystemdScopeTestCase(TestCase):
|
|||
def test_enable(self):
|
||||
self._change_state('enable')
|
||||
|
||||
def test_disable(self):
|
||||
self._change_state('disable')
|
||||
|
||||
def test_mask(self):
|
||||
self._mask_unmask('mask', False)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue