mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
- swapinfo on FreeBSD 6 (maybe 7 too?) doesn't support the "-m" flag for fetching amounts in megabytes. This patch fetches amounts in kilobytes and divides by 1024 (and also returns the result as an int instead of a string). - When no swap is configured, swapinfo prints a header line and nothing else: $ swapinfo Device 1K-blocks Used Avail Capacity The old version unexpectedly parsed that header line and emitted nonsense values like: "ansible_swapfree_mb": "Avail" "ansible_swaptotal_mb": "1K-blocks" This version emits those items altogether. |
||
---|---|---|
.. | ||
__init__.py | ||
a10.py | ||
basic.py | ||
cloudstack.py | ||
database.py | ||
ec2.py | ||
f5.py | ||
facts.py | ||
gce.py | ||
known_hosts.py | ||
openstack.py | ||
powershell.ps1 | ||
rax.py | ||
redhat.py | ||
splitter.py | ||
urls.py |