Commit 35ca1dd0 by Brian Coca

Merge pull request #11110 from myniva/t/11109-fix-keyerror

Fix KeyError which occurs when not-existing entry is tried to be removed.
parents bc44e85f 2945a462
......@@ -189,9 +189,9 @@ class Task(object):
if 'su' in ds:
self.become=ds['su']
del ds['su']
else:
self.become=True
del ds['su']
if 'su_user' in ds:
self.become_user = ds['su_user']
del ds['su_user']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment