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(",", "")