Skip to content

Commit 2ab77a7

Browse files
committed
Fix outdated facts argument
This commit fixes an outdated argument in network facts gathering, it's no longer there and breaks any network_cli model written with rmb.
1 parent 7626172 commit 2ab77a7

File tree

1 file changed

+1
-2
lines changed
  • roles/scaffold_rm_facts/templates/module_utils/network_os/facts

1 file changed

+1
-2
lines changed

roles/scaffold_rm_facts/templates/module_utils/network_os/facts/facts.py.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ class Facts(FactsBase):
3939
:rtype: dict
4040
:return: the facts gathered
4141
"""
42-
netres_choices = FactsArgs.argument_spec['gather_network_resources'].get('choices', [])
4342
if self.VALID_RESOURCE_SUBSETS:
44-
self.get_network_resources_facts(netres_choices, FACT_RESOURCE_SUBSETS, resource_facts_type, data)
43+
self.get_network_resources_facts(FACT_RESOURCE_SUBSETS, resource_facts_type, data)
4544

4645
if self.VALID_LEGACY_GATHER_SUBSETS:
4746
self.get_network_legacy_facts(FACT_LEGACY_SUBSETS, legacy_facts_type)

0 commit comments

Comments
 (0)