nxos_facts fix default udpate platform facts (#53795)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2019-03-14 15:02:21 +05:30 committed by GitHub
parent f6d12fc918
commit fa7c8ce0b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)