Skip to content

Commit

Permalink
Unmask a runtime masked services too
Browse files Browse the repository at this point in the history
  • Loading branch information
evverx committed Aug 20, 2015
1 parent 103651d commit 184801d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/modules/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def unmask(name):
'''
if _untracked_custom_unit_found(name) or _unit_file_changed(name):
systemctl_reload()
return not __salt__['cmd.retcode'](_systemctl_cmd('unmask', name))
return not (__salt__['cmd.retcode'](_systemctl_cmd('unmask', name))
or __salt__['cmd.retcode'](_systemctl_cmd('unmask --runtime', name)))


def mask(name):
Expand Down

0 comments on commit 184801d

Please sign in to comment.