mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #35046 from eliasp/2016.3-salt.states.network-prevent-backtrace
Prevent backtrace in `salt.states.network`
This commit is contained in:
commit
32ed78a399
1 changed files with 4 additions and 0 deletions
|
@ -536,6 +536,10 @@ def system(name, **kwargs):
|
|||
ret['result'] = False
|
||||
ret['comment'] = str(error)
|
||||
return ret
|
||||
except KeyError as error:
|
||||
ret['result'] = False
|
||||
ret['comment'] = str(error)
|
||||
return ret
|
||||
|
||||
# Apply global network settings
|
||||
if apply_net_settings:
|
||||
|
|
Loading…
Add table
Reference in a new issue