From 29d1438aca4cb1988ac81c9f6cb3c4e0403b5fae Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 25 Sep 2020 22:37:06 +0200 Subject: [PATCH] Add 'Unknown (!UNKNOWN)' as author when author is missing. --- lib/ansible/plugins/callback/default.py | 1 + lib/ansible/plugins/callback/junit.py | 1 + lib/ansible/plugins/callback/minimal.py | 1 + lib/ansible/plugins/callback/oneline.py | 1 + lib/ansible/plugins/callback/tree.py | 1 + lib/ansible/plugins/inventory/advanced_host_list.py | 1 + lib/ansible/plugins/inventory/constructed.py | 1 + lib/ansible/plugins/inventory/generator.py | 1 + lib/ansible/plugins/inventory/host_list.py | 1 + lib/ansible/plugins/inventory/ini.py | 1 + lib/ansible/plugins/inventory/script.py | 1 + lib/ansible/plugins/inventory/toml.py | 1 + lib/ansible/plugins/inventory/yaml.py | 1 + lib/ansible/plugins/lookup/dict.py | 1 + lib/ansible/plugins/lookup/nested.py | 1 + lib/ansible/plugins/shell/cmd.py | 1 + lib/ansible/plugins/shell/powershell.py | 1 + lib/ansible/plugins/shell/sh.py | 1 + lib/ansible/plugins/vars/host_group_vars.py | 1 + 19 files changed, 19 insertions(+) diff --git a/lib/ansible/plugins/callback/default.py b/lib/ansible/plugins/callback/default.py index e9fc2d9f7c7..4e2b50ed189 100644 --- a/lib/ansible/plugins/callback/default.py +++ b/lib/ansible/plugins/callback/default.py @@ -8,6 +8,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: default type: stdout + author: Unknown (!UNKNOWN) short_description: default Ansible screen output version_added: historical description: diff --git a/lib/ansible/plugins/callback/junit.py b/lib/ansible/plugins/callback/junit.py index 0b55ce72677..e33f6bd0c30 100644 --- a/lib/ansible/plugins/callback/junit.py +++ b/lib/ansible/plugins/callback/junit.py @@ -8,6 +8,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: junit type: aggregate + author: Unknown (!UNKNOWN) short_description: write playbook output to a JUnit file. version_added: historical description: diff --git a/lib/ansible/plugins/callback/minimal.py b/lib/ansible/plugins/callback/minimal.py index 6fcb07d0484..167a296b608 100644 --- a/lib/ansible/plugins/callback/minimal.py +++ b/lib/ansible/plugins/callback/minimal.py @@ -9,6 +9,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: minimal type: stdout + author: Unknown (!UNKNOWN) short_description: minimal Ansible screen output version_added: historical description: diff --git a/lib/ansible/plugins/callback/oneline.py b/lib/ansible/plugins/callback/oneline.py index fd51b27eeb8..3eec88cacbe 100644 --- a/lib/ansible/plugins/callback/oneline.py +++ b/lib/ansible/plugins/callback/oneline.py @@ -9,6 +9,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: oneline type: stdout + author: Unknown (!UNKNOWN) short_description: oneline Ansible screen output version_added: historical description: diff --git a/lib/ansible/plugins/callback/tree.py b/lib/ansible/plugins/callback/tree.py index 23892f39a6b..ce3dce7e09c 100644 --- a/lib/ansible/plugins/callback/tree.py +++ b/lib/ansible/plugins/callback/tree.py @@ -8,6 +8,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: tree type: notification + author: Unknown (!UNKNOWN) requirements: - invoked in the command line short_description: Save host events to files diff --git a/lib/ansible/plugins/inventory/advanced_host_list.py b/lib/ansible/plugins/inventory/advanced_host_list.py index c61a4656cb4..bf3463405ef 100644 --- a/lib/ansible/plugins/inventory/advanced_host_list.py +++ b/lib/ansible/plugins/inventory/advanced_host_list.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: advanced_host_list + author: Unknown (!UNKNOWN) version_added: "2.4" short_description: Parses a 'host list' with ranges description: diff --git a/lib/ansible/plugins/inventory/constructed.py b/lib/ansible/plugins/inventory/constructed.py index 424eb00e977..43c306f29ba 100644 --- a/lib/ansible/plugins/inventory/constructed.py +++ b/lib/ansible/plugins/inventory/constructed.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: constructed + author: Unknown (!UNKNOWN) version_added: "2.4" short_description: Uses Jinja2 to construct vars and groups based on existing inventory. description: diff --git a/lib/ansible/plugins/inventory/generator.py b/lib/ansible/plugins/inventory/generator.py index 27575dd0c71..391b4aa89c2 100644 --- a/lib/ansible/plugins/inventory/generator.py +++ b/lib/ansible/plugins/inventory/generator.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: generator + author: Unknown (!UNKNOWN) version_added: "2.6" short_description: Uses Jinja2 to construct hosts and groups from patterns description: diff --git a/lib/ansible/plugins/inventory/host_list.py b/lib/ansible/plugins/inventory/host_list.py index eee851653ec..db52c56e57b 100644 --- a/lib/ansible/plugins/inventory/host_list.py +++ b/lib/ansible/plugins/inventory/host_list.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = r''' name: host_list + author: Unknown (!UNKNOWN) version_added: "2.4" short_description: Parses a 'host list' string description: diff --git a/lib/ansible/plugins/inventory/ini.py b/lib/ansible/plugins/inventory/ini.py index be9ec2fce96..b44c38c5ef8 100644 --- a/lib/ansible/plugins/inventory/ini.py +++ b/lib/ansible/plugins/inventory/ini.py @@ -5,6 +5,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: ini + author: Unknown (!UNKNOWN) version_added: "2.4" short_description: Uses an Ansible INI file as inventory source. description: diff --git a/lib/ansible/plugins/inventory/script.py b/lib/ansible/plugins/inventory/script.py index d94f35d8fc6..355f338888b 100644 --- a/lib/ansible/plugins/inventory/script.py +++ b/lib/ansible/plugins/inventory/script.py @@ -7,6 +7,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: script + author: Unknown (!UNKNOWN) version_added: "2.4" short_description: Executes an inventory script that returns JSON options: diff --git a/lib/ansible/plugins/inventory/toml.py b/lib/ansible/plugins/inventory/toml.py index 50e1ced5568..be3b2f5f79d 100644 --- a/lib/ansible/plugins/inventory/toml.py +++ b/lib/ansible/plugins/inventory/toml.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = r''' name: toml + author: Unknown (!UNKNOWN) version_added: "2.8" short_description: Uses a specific TOML file as an inventory source. description: diff --git a/lib/ansible/plugins/inventory/yaml.py b/lib/ansible/plugins/inventory/yaml.py index f927e00b791..cb32e5ea970 100644 --- a/lib/ansible/plugins/inventory/yaml.py +++ b/lib/ansible/plugins/inventory/yaml.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: yaml + author: Unknown (!UNKNOWN) version_added: "2.4" short_description: Uses a specific YAML file as an inventory source. description: diff --git a/lib/ansible/plugins/lookup/dict.py b/lib/ansible/plugins/lookup/dict.py index 5a83d9e8a13..ccdd7b11704 100644 --- a/lib/ansible/plugins/lookup/dict.py +++ b/lib/ansible/plugins/lookup/dict.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = """ name: dict + author: Unknown (!UNKNOWN) version_added: "1.5" short_description: returns key/value pair items from dictionaries description: diff --git a/lib/ansible/plugins/lookup/nested.py b/lib/ansible/plugins/lookup/nested.py index e38a0f5cec2..f513caeb44f 100644 --- a/lib/ansible/plugins/lookup/nested.py +++ b/lib/ansible/plugins/lookup/nested.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = """ name: nested + author: Unknown (!UNKNOWN) version_added: "1.1" short_description: composes a list with nested elements of other lists description: diff --git a/lib/ansible/plugins/shell/cmd.py b/lib/ansible/plugins/shell/cmd.py index e73c6719548..e0ab352f178 100644 --- a/lib/ansible/plugins/shell/cmd.py +++ b/lib/ansible/plugins/shell/cmd.py @@ -5,6 +5,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: cmd +author: Unknown (!UNKNOWN) version_added: '2.8' short_description: Windows Command Prompt description: diff --git a/lib/ansible/plugins/shell/powershell.py b/lib/ansible/plugins/shell/powershell.py index d0f33ac1eff..854b15be699 100644 --- a/lib/ansible/plugins/shell/powershell.py +++ b/lib/ansible/plugins/shell/powershell.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: powershell +author: Unknown (!UNKNOWN) version_added: historical short_description: Windows PowerShell description: diff --git a/lib/ansible/plugins/shell/sh.py b/lib/ansible/plugins/shell/sh.py index 5b13a015a23..1cbaa3c0392 100644 --- a/lib/ansible/plugins/shell/sh.py +++ b/lib/ansible/plugins/shell/sh.py @@ -6,6 +6,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: sh +author: Unknown (!UNKNOWN) short_description: "POSIX shell (/bin/sh)" version_added: historical description: diff --git a/lib/ansible/plugins/vars/host_group_vars.py b/lib/ansible/plugins/vars/host_group_vars.py index 7bdfe332c80..73222383cac 100644 --- a/lib/ansible/plugins/vars/host_group_vars.py +++ b/lib/ansible/plugins/vars/host_group_vars.py @@ -20,6 +20,7 @@ __metaclass__ = type DOCUMENTATION = ''' name: host_group_vars + author: Unknown (!UNKNOWN) version_added: "2.4" short_description: In charge of loading group_vars and host_vars requirements: