Merge pull request #39633 from terminalmage/fix-systemd-typo

Fix misspelled argument in salt.modules.systemd.disable()
This commit is contained in:
Nicole Thomas 2017-02-24 11:21:35 -07:00 committed by GitHub
commit fc970b6a16
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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)