diff options
| author | Brian Coca <brian.coca+git@gmail.com> | 2016-03-10 01:00:33 -0500 |
|---|---|---|
| committer | Brian Coca <brian.coca+git@gmail.com> | 2016-03-10 01:00:33 -0500 |
| commit | 6a85da7e0cf9d1570b44e2782ddeac2848c85a46 (patch) | |
| tree | 8422f982d90f5675dfbb66bfb98ac2a4c503eb62 /hacking | |
| parent | 923548f6d5877c8803edddd70136f070ccb77df4 (diff) | |
| download | ansible-6a85da7e0cf9d1570b44e2782ddeac2848c85a46.tar.gz | |
avoid private attributes
hardcode adding with_ for tasks
Diffstat (limited to 'hacking')
| -rwxr-xr-x | hacking/dump_playbook_attributes.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hacking/dump_playbook_attributes.py b/hacking/dump_playbook_attributes.py index 6a0f08f45b..88029cd24d 100755 --- a/hacking/dump_playbook_attributes.py +++ b/hacking/dump_playbook_attributes.py @@ -29,13 +29,11 @@ for aclass in class_list: # build ordered list to loop over and dict with attributes clist.append(name) - oblist[name] = aobj.__dict__['_attributes'] + oblist[name] = {x: aobj.__dict__['_attributes'][x] for x in aobj.__dict__['_attributes'] if 'private' not in x or not x.private} # loop is really with_ for users - if 'loop' in oblist[name]: + if name == 'Task': oblist[name]['with_<lookup_plugin>'] = True - del oblist[name]['loop'] - del oblist[name]['loop_args'] # local_action is implicit with action if 'action' in oblist[name]: |
