Skip to content

Commit

Permalink
Remove subset warrning from facts (#35)
Browse files Browse the repository at this point in the history
* Remove subset warrning from facts

Signed-off-by: NilashishC <[email protected]>

* Updates

Signed-off-by: NilashishC <[email protected]>

Signed-off-by: NilashishC <[email protected]>
  • Loading branch information
NilashishC authored Dec 13, 2022
1 parent c11125e commit 8fbb429
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/facts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- Remove redundant ignore.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = """
Expand Down Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
}

0 comments on commit 8fbb429

Please sign in to comment.