mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove redundant try/except block from state`
This commit is contained in:
parent
6ad2427279
commit
56582f293a
1 changed files with 2 additions and 5 deletions
|
@ -299,11 +299,8 @@ def removed(name, features=None, remove_payload=False, restart=False):
|
|||
return ret
|
||||
|
||||
# Remove the features
|
||||
try:
|
||||
status = __salt__['win_servermanager.remove'](
|
||||
features, remove_payload=remove_payload, restart=restart)
|
||||
except CommandExecutionError:
|
||||
raise
|
||||
status = __salt__['win_servermanager.remove'](
|
||||
features, remove_payload=remove_payload, restart=restart)
|
||||
|
||||
ret['result'] = status['Success']
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue