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']
......@@ -260,7 +260,7 @@ class Task(object):
self.items_lookup_plugin = ds.get('items_lookup_plugin', None)
self.items_lookup_terms = ds.get('items_lookup_terms', None)
self.ignore_errors = ds.get('ignore_errors', False)
self.any_errors_fatal = ds.get('any_errors_fatal', play.any_errors_fatal)
......
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