summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_facts.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/modules/vyos_facts.py')
-rw-r--r--plugins/modules/vyos_facts.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/modules/vyos_facts.py b/plugins/modules/vyos_facts.py
index 5e57821..ae7543c 100644
--- a/plugins/modules/vyos_facts.py
+++ b/plugins/modules/vyos_facts.py
@@ -139,12 +139,13 @@ ansible_net_gather_network_resources:
"""
from ansible.module_utils.basic import AnsibleModule
+
from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.argspec.facts.facts import (
FactsArgs,
)
from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.facts.facts import (
- Facts,
FACT_RESOURCE_SUBSETS,
+ Facts,
)
@@ -156,17 +157,13 @@ def main():
"""
argument_spec = FactsArgs.argument_spec
- module = AnsibleModule(
- argument_spec=argument_spec, supports_check_mode=True
- )
+ module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True)
warnings = []
ansible_facts = {}
if module.params.get("available_network_resources"):
- ansible_facts["available_network_resources"] = sorted(
- FACT_RESOURCE_SUBSETS.keys()
- )
+ ansible_facts["available_network_resources"] = sorted(FACT_RESOURCE_SUBSETS.keys())
result = Facts(module).get_facts()
additional_facts, additional_warnings = result
ansible_facts.update(additional_facts)