mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use swapctl for NetBSD
This commit is contained in:
parent
428e915d6a
commit
30478e8c9c
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ def _bsd_memdata(osdata):
|
|||
mem = __salt__['cmd.run']('{0} -n hw.physmem64'.format(sysctl))
|
||||
grains['mem_total'] = int(mem) // 1024 // 1024
|
||||
|
||||
if osdata['kernel'] == 'OpenBSD':
|
||||
if osdata['kernel'] in ['OpenBSD', 'NetBSD']:
|
||||
swapctl = salt.utils.path.which('swapctl')
|
||||
swap_total = __salt__['cmd.run']('{0} -sk'.format(swapctl)).split(' ')[1]
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue