mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove runas and runas_password after state run
This commit is contained in:
parent
4ea264e3db
commit
6c71ab6f80
1 changed files with 3 additions and 0 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Reference in a new issue