Skip to content

Commit

Permalink
Migrate ensure_resources to slat operator
Browse files Browse the repository at this point in the history
Use splat operator as it provides better error messages
  • Loading branch information
traylenator committed Nov 21, 2023
1 parent dd8f1a0 commit 2509e82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@
}

if $connections {
ensure_resources('nm::connection', $connections)
$connections.each | $_name, $_params | {
nm::connection { $_name:
* => $_params,
}
}
}

exec { 'nmcli conn reload':
Expand Down

0 comments on commit 2509e82

Please sign in to comment.