darwin: simplify the fact code (#84848)

* Follow up for code review on #84779

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
pull/84877/head
Abhijeet Kasurde 9 months ago committed by GitHub
parent 8127abbc29
commit ac43e40904
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:

Loading…
Cancel
Save