Skip to content

Commit

Permalink
Merge pull request #39633 from terminalmage/fix-systemd-typo
Browse files Browse the repository at this point in the history
Fix misspelled argument in salt.modules.systemd.disable()
  • Loading branch information
Nicole Thomas committed Feb 24, 2017
2 parents 53e78d6 + ca54541 commit fc970b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/modules/systemd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,9 @@ def test_force_reload(self):
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)

Expand Down

0 comments on commit fc970b6

Please sign in to comment.