cbc417ca1b
We wrap get_distribution_version() with a new function, _get_distribution_version(), that returns `0` when the result is a string or `None`. This accounts for the case when get_distribution_version() returns a string, and we try to compare it to a float. We do this in the hostname module instead of the module snippets because other modules may want the real string version.module snippets because other modules may want the real string version. |
||
---|---|---|
.. | ||
alternatives | ||
at | ||
authorized_key | ||
capabilities | ||
cron | ||
debconf | ||
facter | ||
filesystem | ||
firewalld | ||
group | ||
hostname | ||
kernel_blacklist | ||
locale_gen | ||
lvg | ||
lvol | ||
modprobe | ||
mount | ||
ohai | ||
open_iscsi | ||
ping | ||
seboolean | ||
selinux | ||
service | ||
setup | ||
sysctl | ||
ufw | ||
user | ||
zfs |