mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
darwin: simplify the fact code (#84848)
* Follow up for code review on #84779 Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
This commit is contained in:
@@ -93,9 +93,7 @@ class DarwinHardware(Hardware):
|
||||
}
|
||||
|
||||
total_used = 0
|
||||
page_size = 4096
|
||||
if 'hw.pagesize' in self.sysctl:
|
||||
page_size = int(self.sysctl['hw.pagesize'])
|
||||
page_size = int(self.sysctl.get('hw.pagesize', 4096))
|
||||
|
||||
vm_stat_command = self.module.get_bin_path('vm_stat')
|
||||
if vm_stat_command is None:
|
||||
|
||||
Reference in New Issue
Block a user