diff options
Diffstat (limited to 'plugins/module_utils/network')
| -rw-r--r-- | plugins/module_utils/network/vyos/argspec/facts/facts.py | 16 | ||||
| -rw-r--r-- | plugins/module_utils/network/vyos/facts/facts.py | 11 | 
2 files changed, 2 insertions, 25 deletions
| diff --git a/plugins/module_utils/network/vyos/argspec/facts/facts.py b/plugins/module_utils/network/vyos/argspec/facts/facts.py index 1dd15105..46fabaa2 100644 --- a/plugins/module_utils/network/vyos/argspec/facts/facts.py +++ b/plugins/module_utils/network/vyos/argspec/facts/facts.py @@ -16,21 +16,7 @@ class FactsArgs(object):  # pylint: disable=R0903      def __init__(self, **kwargs):          pass -    choices = [ -        "all", -        "interfaces", -        "!interfaces", -        "l3_interfaces", -        "!l3_interfaces", -        "lag_interfaces", -        "!lag_interfaces", -        "lldp_global", -        "!lldp_global", -        "lldp_interfaces", -        "!lldp_interfaces", -    ] -      argument_spec = {          "gather_subset": dict(default=["!config"], type="list"), -        "gather_network_resources": dict(choices=choices, type="list"), +        "gather_network_resources": dict(type="list"),      } diff --git a/plugins/module_utils/network/vyos/facts/facts.py b/plugins/module_utils/network/vyos/facts/facts.py index d4aec706..bb292e1e 100644 --- a/plugins/module_utils/network/vyos/facts/facts.py +++ b/plugins/module_utils/network/vyos/facts/facts.py @@ -9,9 +9,6 @@ calls the appropriate facts gathering function  from __future__ import absolute_import, division, print_function  __metaclass__ = type -from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.argspec.facts.facts import ( -    FactsArgs, -)  from ansible.module_utils.network.common.facts.facts import FactsBase  from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.facts.interfaces.interfaces import (      InterfacesFacts, @@ -65,15 +62,9 @@ class Facts(FactsBase):          :rtype: dict          :return: the facts gathered          """ -        netres_choices = FactsArgs.argument_spec[ -            "gather_network_resources" -        ].get("choices", [])          if self.VALID_RESOURCE_SUBSETS:              self.get_network_resources_facts( -                netres_choices, -                FACT_RESOURCE_SUBSETS, -                resource_facts_type, -                data, +                FACT_RESOURCE_SUBSETS, resource_facts_type, data              )          if self.VALID_LEGACY_GATHER_SUBSETS:              self.get_network_legacy_facts( | 
