diff --git a/changelogs/fragments/facts.yaml b/changelogs/fragments/facts.yaml new file mode 100644 index 0000000..bae1a11 --- /dev/null +++ b/changelogs/fragments/facts.yaml @@ -0,0 +1,3 @@ +--- +trivial: + - Remove redundant ignore. diff --git a/roles/module_network_cli/templates/module_directory/network_os/network_os_facts.py.j2 b/roles/module_network_cli/templates/module_directory/network_os/network_os_facts.py.j2 index 8ac4872..e530c10 100644 --- a/roles/module_network_cli/templates/module_directory/network_os/network_os_facts.py.j2 +++ b/roles/module_network_cli/templates/module_directory/network_os/network_os_facts.py.j2 @@ -33,8 +33,7 @@ options: with an initial C(M(!)) to specify that a specific subset should not be collected. required: false - default: 'all' - version_added: "2.2" + default: 'min' gather_network_resources: description: - When supplied, this argument will restrict the facts collected @@ -44,7 +43,6 @@ options: can also be used with an initial C(M(!)) to specify that a specific subset should not be collected. required: false - version_added: "2.9" """ EXAMPLES = """ @@ -89,8 +87,6 @@ def main(): """ module = AnsibleModule(argument_spec=FactsArgs.argument_spec, supports_check_mode=True) - warnings = ['default value for `gather_subset` ' - 'will be changed to `min` from `!config` v2.11 onwards'] result = Facts(module).get_facts() diff --git a/roles/module_network_cli/templates/module_utils/network_os/argspec/facts/facts.py.j2 b/roles/module_network_cli/templates/module_utils/network_os/argspec/facts/facts.py.j2 index 515f525..d2a6595 100644 --- a/roles/module_network_cli/templates/module_utils/network_os/argspec/facts/facts.py.j2 +++ b/roles/module_network_cli/templates/module_utils/network_os/argspec/facts/facts.py.j2 @@ -25,7 +25,8 @@ class FactsArgs(object): # pylint: disable=R0903 ] argument_spec = { - 'gather_subset': dict(default=['!config'], type='list'), + # Remove key(s) that will not be implemented + 'gather_subset': dict(default=['min'], type='list'), 'gather_network_resources': dict(choices=choices, type='list'), }