Modified version comparison to use integers

This commit is contained in:
jigen 2015-10-14 19:13:44 +02:00
parent b3e81589ee
commit 2ae42e6633

View file

@ -50,7 +50,7 @@ class sshd(
$sshkey_ipaddress = $::ipaddress,
$manage_client = true,
$hostkey_type = versioncmp($::ssh_version, '6.5') ? {
/(^1|0)/ => [ 'rsa', 'ed25519' ],
/(1|0)/ => [ 'rsa', 'ed25519' ],
/-1/ => [ 'rsa', 'dsa' ]
}
) {