diff --git a/lib/ansible/modules/network/nxos/nxos_facts.py b/lib/ansible/modules/network/nxos/nxos_facts.py index b55c78ac2f..3c364c6da6 100644 --- a/lib/ansible/modules/network/nxos/nxos_facts.py +++ b/lib/ansible/modules/network/nxos/nxos_facts.py @@ -253,14 +253,7 @@ class Default(FactsBase): if data: self.facts['license_hostid'] = self.parse_license_hostid(data) - def parse_version(self, data): - match = re.search(r'\s+system:\s+version\s*(\S+)', data, re.M) - if match: - return match.group(1) - else: - match = re.search(r'\s+kickstart:\s+version\s*(\S+)', data, re.M) - if match: - return match.group(1) + self.facts.update(self.platform_facts()) def parse_serialnum(self, data): match = re.search(r'Processor Board ID\s*(\S+)', data, re.M)