From e9cc3a59c0aa2f4f1b4288a945c4ea2a3a5703c6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 9 Sep 2019 22:35:32 +0200 Subject: [PATCH] anarcat points out that maybe Optional[String] is better to use here No idea if it works, but we'll find out eventually --- modules/ssh/manifests/authorized_key_add.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ssh/manifests/authorized_key_add.pp b/modules/ssh/manifests/authorized_key_add.pp index 122a392d8..ec357ff70 100644 --- a/modules/ssh/manifests/authorized_key_add.pp +++ b/modules/ssh/manifests/authorized_key_add.pp @@ -4,9 +4,9 @@ define ssh::authorized_key_add( String $target_user, String $command, - Variant[String, Undef] $key, Variant[Array[String], String] $collect_tag, String $restrict = 'restrict', + Optional[String] $key, Array[Stdlib::IP::Address] $from_hosts = $base::public_addresses, ) { $from = $from_hosts.join(',') -- 2.20.1