diff --git a/lib/ansible/module_utils/network/common/facts/facts.py b/lib/ansible/module_utils/network/common/facts/facts.py index 0914bbbc5b106c..9f010964c2b3cf 100644 --- a/lib/ansible/module_utils/network/common/facts/facts.py +++ b/lib/ansible/module_utils/network/common/facts/facts.py @@ -109,9 +109,11 @@ def get_network_legacy_facts(self, fact_legacy_obj_map, legacy_facts_type=None): legacy_facts_type = self._gather_subset runable_subsets = self.gen_runable(legacy_facts_type, frozenset(fact_legacy_obj_map.keys())) - runable_subsets.add('default') if runable_subsets: facts = dict() + # default subset should always returned be with legacy facts subsets + if 'default' not in runable_subsets: + runable_subsets.add('default') self.ansible_facts['ansible_net_gather_subset'] = list(runable_subsets) instances = list() diff --git a/lib/ansible/module_utils/network/iosxr/facts/facts.py b/lib/ansible/module_utils/network/iosxr/facts/facts.py index b3bae0d360009b..cc7629baff4da4 100644 --- a/lib/ansible/module_utils/network/iosxr/facts/facts.py +++ b/lib/ansible/module_utils/network/iosxr/facts/facts.py @@ -64,7 +64,7 @@ def get_facts(self, legacy_facts_type=None, resource_facts_type=None, data=None) :return: the facts gathered """ if self.VALID_RESOURCE_SUBSETS: - self.get_network_resources_facts( 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) diff --git a/lib/ansible/module_utils/network/junos/argspec/facts/facts.py b/lib/ansible/module_utils/network/junos/argspec/facts/facts.py index 83e49b6f8f48f5..5b90f847e9a2af 100644 --- a/lib/ansible/module_utils/network/junos/argspec/facts/facts.py +++ b/lib/ansible/module_utils/network/junos/argspec/facts/facts.py @@ -7,6 +7,7 @@ The arg spec for the junos facts module. """ + class FactsArgs(object): """ The arg spec for the junos facts module """