From 73e7da40ff9ba81e4f185c3d743b314f6c2b56b7 Mon Sep 17 00:00:00 2001 From: zhangyan <1072973303@qq.com> Date: Thu, 10 Oct 2019 20:17:18 +0800 Subject: [PATCH] Update ce_facts to fix bugs --- lib/ansible/modules/network/cloudengine/ce_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/cloudengine/ce_facts.py b/lib/ansible/modules/network/cloudengine/ce_facts.py index ceff0238207..5abe585b0f8 100644 --- a/lib/ansible/modules/network/cloudengine/ce_facts.py +++ b/lib/ansible/modules/network/cloudengine/ce_facts.py @@ -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(",", "")