Skip to content

Commit

Permalink
Fix outdated facts argument
Browse files Browse the repository at this point in the history
This commit fixes an outdated argument in network facts gathering,
it's no longer there and breaks any network_cli model written with rmb.
  • Loading branch information
danielmellado committed Nov 15, 2019
1 parent 7626172 commit 2ab77a7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ 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)
self.get_network_resources_facts(FACT_RESOURCE_SUBSETS, resource_facts_type, data)

if self.VALID_LEGACY_GATHER_SUBSETS:
self.get_network_legacy_facts(FACT_LEGACY_SUBSETS, legacy_facts_type)
Expand Down

0 comments on commit 2ab77a7

Please sign in to comment.