Modified version comparison to use integers
This commit is contained in:
parent
b3e81589ee
commit
2ae42e6633
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class sshd(
|
||||||
$sshkey_ipaddress = $::ipaddress,
|
$sshkey_ipaddress = $::ipaddress,
|
||||||
$manage_client = true,
|
$manage_client = true,
|
||||||
$hostkey_type = versioncmp($::ssh_version, '6.5') ? {
|
$hostkey_type = versioncmp($::ssh_version, '6.5') ? {
|
||||||
/(^1|0)/ => [ 'rsa', 'ed25519' ],
|
/(1|0)/ => [ 'rsa', 'ed25519' ],
|
||||||
/-1/ => [ 'rsa', 'dsa' ]
|
/-1/ => [ 'rsa', 'dsa' ]
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue