"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/ansible/playbook/task.py" between
ansible-2.14.0.tar.gz and ansible-2.14.1rc1.tar.gz

About: Ansible is an IT Configuration Management, Deployment & Orchestration tool.
Release candidate.

task.py  (ansible-2.14.0):task.py  (ansible-2.14.1rc1)
skipping to change at line 246 skipping to change at line 246
else: else:
new_ds['vars'] = dict() new_ds['vars'] = dict()
for (k, v) in ds.items(): for (k, v) in ds.items():
if k in ('action', 'local_action', 'args', 'delegate_to') or k == ac tion or k == 'shell': if k in ('action', 'local_action', 'args', 'delegate_to') or k == ac tion or k == 'shell':
# we don't want to re-assign these values, which were determined by the ModuleArgsParser() above # we don't want to re-assign these values, which were determined by the ModuleArgsParser() above
continue continue
elif k.startswith('with_') and k.removeprefix("with_") in lookup_loa der: elif k.startswith('with_') and k.removeprefix("with_") in lookup_loa der:
# transform into loop property # transform into loop property
self._preprocess_with_loop(ds, new_ds, k, v) self._preprocess_with_loop(ds, new_ds, k, v)
elif C.INVALID_TASK_ATTRIBUTE_FAILED or k in self._valid_attrs: elif C.INVALID_TASK_ATTRIBUTE_FAILED or k in self.fattributes:
new_ds[k] = v new_ds[k] = v
else: else:
display.warning("Ignoring invalid attribute: %s" % k) display.warning("Ignoring invalid attribute: %s" % k)
return super(Task, self).preprocess_data(new_ds) return super(Task, self).preprocess_data(new_ds)
def _load_loop_control(self, attr, ds): def _load_loop_control(self, attr, ds):
if not isinstance(ds, dict): if not isinstance(ds, dict):
raise AnsibleParserError( raise AnsibleParserError(
"the `loop_control` value must be specified as a dictionary and cannot " "the `loop_control` value must be specified as a dictionary and cannot "
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)