nxos_facts fix default udpate platform facts (#53795)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/53800/head
Trishna Guha 6 years ago committed by GitHub
parent f6d12fc918
commit fa7c8ce0b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -253,14 +253,7 @@ class Default(FactsBase):
if data: if data:
self.facts['license_hostid'] = self.parse_license_hostid(data) self.facts['license_hostid'] = self.parse_license_hostid(data)
def parse_version(self, data): self.facts.update(self.platform_facts())
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)
def parse_serialnum(self, data): def parse_serialnum(self, data):
match = re.search(r'Processor Board ID\s*(\S+)', data, re.M) match = re.search(r'Processor Board ID\s*(\S+)', data, re.M)

Loading…
Cancel
Save