From 2ae42e6633c441dc34ff1673e796b8af826fb934 Mon Sep 17 00:00:00 2001 From: jigen Date: Wed, 14 Oct 2015 19:13:44 +0200 Subject: [PATCH] Modified version comparison to use integers --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 2dfc71c..cf0d9f6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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' ] } ) {