Remove runas and runas_password after state run

This commit is contained in:
twangboy 2017-07-28 11:03:21 -06:00
parent 4ea264e3db
commit 6c71ab6f80

View file

@ -1866,6 +1866,9 @@ class State(object):
sys.modules[self.states[cdata['full']].__module__].__opts__[
'test'] = test
self.state_con.pop('runas')
self.state_con.pop('runas_password')
# If format_call got any warnings, let's show them to the user
if 'warnings' in cdata:
ret.setdefault('warnings', []).extend(cdata['warnings'])