From 3677b7834a8cb735db9b7004563e74bc1ca74961 Mon Sep 17 00:00:00 2001 From: GomathiselviS <gomathiselvi@gmail.com> Date: Wed, 20 Apr 2022 23:56:19 -0400 Subject: change default subset to min (#252) vyos_facts: change default subset to min Signed-off-by: GomathiselviS gomathiselvi@gmail.com SUMMARY Fixes #231 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Nathaniel Case <this.is@nathanielca.se> --- plugins/module_utils/network/vyos/argspec/facts/facts.py | 4 +--- plugins/modules/vyos_facts.py | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/module_utils/network/vyos/argspec/facts/facts.py b/plugins/module_utils/network/vyos/argspec/facts/facts.py index efd98e36..45a4cb49 100644 --- a/plugins/module_utils/network/vyos/argspec/facts/facts.py +++ b/plugins/module_utils/network/vyos/argspec/facts/facts.py @@ -16,9 +16,7 @@ class FactsArgs(object): # pylint: disable=R0903 pass argument_spec = { - "gather_subset": dict( - default=["!config"], type="list", elements="str" - ), + "gather_subset": dict(default=["min"], type="list", elements="str"), "gather_network_resources": dict(type="list", elements="str"), "available_network_resources": {"type": "bool", "default": False}, } diff --git a/plugins/modules/vyos_facts.py b/plugins/modules/vyos_facts.py index ef19ec09..951dbe9b 100644 --- a/plugins/modules/vyos_facts.py +++ b/plugins/modules/vyos_facts.py @@ -33,11 +33,11 @@ options: gather_subset: description: - When supplied, this argument will restrict the facts collected to a given subset. Possible - values for this argument include all, default, config, and neighbors. Can specify + values for this argument include C(all), C(default), C(config), C(neighbors) and C(min). Can specify a list of values to include a larger subset. Values can also be used with an initial C(!) to specify that a specific subset should not be collected. required: false - default: '!config' + default: 'min' type: list elements: str gather_network_resources: -- cgit v1.2.3