Skip to content

Commit

Permalink
pull struct keys into array
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Jan 1, 2024
1 parent 36b8139 commit e6d04d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/systemd.pp
Expand Up @@ -65,7 +65,7 @@
!($iface in $bridge_children or $iface in $bridges or $iface in $vlans or $ignore.any |$item| { $iface.match($item) })
}

$primary_interface = sort($real_interfaces)[0]
$primary_interface = sort(keys($real_interfaces))[0]

$real_interfaces.each |String $iface, Any $value| {
file { "/etc/systemd/network/${iface}.network":
Expand Down

0 comments on commit e6d04d2

Please sign in to comment.