From d4bbb8e2b8ab13ad0e48a2ee56f819d140b1b95b Mon Sep 17 00:00:00 2001 From: yanzhangi <51999930+yanzhangi@users.noreply.github.com> Date: Sat, 12 Oct 2019 09:11:22 +0800 Subject: [PATCH] Update ce_facts to fix bugs (#63331) --- 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(",", "")