mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
pop None
We don't want to error here, so if for some reason the key is not populated, just return a None instead of erroring.
This commit is contained in:
parent
d6ccf4bb30
commit
c6733ac1ee
1 changed files with 2 additions and 2 deletions
|
@ -1878,8 +1878,8 @@ class State(object):
|
|||
sys.modules[self.states[cdata['full']].__module__].__opts__[
|
||||
'test'] = test
|
||||
|
||||
self.state_con.pop('runas')
|
||||
self.state_con.pop('runas_password')
|
||||
self.state_con.pop('runas', None)
|
||||
self.state_con.pop('runas_password', None)
|
||||
|
||||
# If format_call got any warnings, let's show them to the user
|
||||
if 'warnings' in cdata:
|
||||
|
|
Loading…
Add table
Reference in a new issue