Update ce_facts to fix bugs (#63331)

This commit is contained in:
yanzhangi 2019-10-12 09:11:22 +08:00 committed by ansibot
parent 054285c34c
commit d4bbb8e2b8

View file

@ -253,7 +253,7 @@ class Hardware(FactsBase):
data = self.responses[0]
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_free'] = re.findall(r'total \((.*) free\)', data)[0].replace(",", "")