Update ce_facts to fix bugs

pull/63331/head
zhangyan 5 years ago
parent 0e9f002073
commit 73e7da40ff

@ -253,7 +253,7 @@ class Hardware(FactsBase):
data = self.responses[0] data = self.responses[0]
if data: if data:
self.facts['filesystems'] = re.findall(r'^Directory of (.*)/', data)[0] self.facts['filesystems'] = re.findall(r'Directory of (.*)/', data)[0]
self.facts['flash_total'] = re.findall(r'(.*) total', data)[0].replace(",", "") self.facts['flash_total'] = re.findall(r'(.*) total', data)[0].replace(",", "")
self.facts['flash_free'] = re.findall(r'total \((.*) free\)', data)[0].replace(",", "") self.facts['flash_free'] = re.findall(r'total \((.*) free\)', data)[0].replace(",", "")

Loading…
Cancel
Save