From 2509e82c5bcdde8ab33009841cbeeb0c9fdb0150 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Tue, 21 Nov 2023 11:58:03 +0100 Subject: [PATCH] Migrate ensure_resources to slat operator Use splat operator as it provides better error messages --- manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 4d63681..01dd03d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -67,7 +67,11 @@ } if $connections { - ensure_resources('nm::connection', $connections) + $connections.each | $_name, $_params | { + nm::connection { $_name: + * => $_params, + } + } } exec { 'nmcli conn reload':