diff options
author | Peter Sprygada <privateip@users.noreply.github.com> | 2016-10-13 08:21:33 -0400 |
---|---|---|
committer | Peter Sprygada <psprygada@ansible.com> | 2016-10-13 08:29:10 -0400 |
commit | e4689ccec7982e71167fd1f95897ba1b9af7856d (patch) | |
tree | 5533a3fa1da47af159ea4ea40c8d353c7a4ce737 | |
parent | 8686a72988f23a6ba64efb19697b453c31cce0ae (diff) | |
download | ansible-modules-core-e4689ccec7982e71167fd1f95897ba1b9af7856d.tar.gz |
fixes issue with collecting all filesystems in ios (#5248)
earlier versions of ios do not provide the all-filesystems argument. This
fix will now only report on the flash filesystem for ios_facts
fixes #4712
(cherry picked from commit 04b214852d13b24207c02d9c58b658d71bec0cfb)
-rw-r--r-- | network/ios/ios_facts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network/ios/ios_facts.py b/network/ios/ios_facts.py index 699637d9..c1516cec 100644 --- a/network/ios/ios_facts.py +++ b/network/ios/ios_facts.py @@ -195,12 +195,12 @@ class Default(FactsBase): class Hardware(FactsBase): def commands(self): - add_command(self.runner, 'dir all-filesystems | include Directory') + add_command(self.runner, 'dir | include Directory') add_command(self.runner, 'show version') add_command(self.runner, 'show memory statistics | include Processor') def populate(self): - data = self.runner.get_command('dir all-filesystems | include Directory') + data = self.runner.get_command('dir | include Directory') self.facts['filesystems'] = self.parse_filesystems(data) data = self.runner.get_command('show memory statistics | include Processor') |