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:
Daniel Wallace 2017-11-27 10:04:23 -07:00
parent d6ccf4bb30
commit c6733ac1ee
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -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: