mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
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
This commit is contained in:
committed by
Matt Clay
parent
f106ff9e77
commit
810040be05
@@ -195,12 +195,12 @@ class Default(FactsBase):
|
|||||||
class Hardware(FactsBase):
|
class Hardware(FactsBase):
|
||||||
|
|
||||||
def commands(self):
|
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 version')
|
||||||
add_command(self.runner, 'show memory statistics | include Processor')
|
add_command(self.runner, 'show memory statistics | include Processor')
|
||||||
|
|
||||||
def populate(self):
|
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)
|
self.facts['filesystems'] = self.parse_filesystems(data)
|
||||||
|
|
||||||
data = self.runner.get_command('show memory statistics | include Processor')
|
data = self.runner.get_command('show memory statistics | include Processor')
|
||||||
|
|||||||
Reference in New Issue
Block a user