diff --git a/lib/ansible/modules/network/eos/eos_facts.py b/lib/ansible/modules/network/eos/eos_facts.py index 99ecd2bffaa..0f5efdb1655 100644 --- a/lib/ansible/modules/network/eos/eos_facts.py +++ b/lib/ansible/modules/network/eos/eos_facts.py @@ -201,6 +201,10 @@ class Hardware(FactsBase): def populate_filesystems(self): data = self.responses[0] + + if isinstance(data, dict): + data = data['messages'][0] + fs = re.findall(r'^Directory of (.+)/', data, re.M) return dict(filesystems=fs)