Skip to content

Commit

Permalink
Update manifests/udev/rule.pp
Browse files Browse the repository at this point in the history
Co-authored-by: Kenyon Ralph <[email protected]>
  • Loading branch information
deric and kenyon authored Aug 27, 2024
1 parent 16d9853 commit 5ad232f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/udev/rule.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
fail("systemd::udev::rule - ${name}: param rules is empty, you need to pass rules")
}

if $systemd::udev_reload {
$_notify = if $systemd::udev_reload {
if $notify_services =~ Array {
$_notify = $notify_services << 'Exec[systemd-udev_reload]'
$notify_services << 'Exec[systemd-udev_reload]'
} else {
$_notify = [$notify_services, 'Exec[systemd-udev_reload]']
[$notify_services, 'Exec[systemd-udev_reload]']
}
} else {
$_notify = $notify_services
$notify_services
}

file { join([$path, $name], '/'):
Expand Down

0 comments on commit 5ad232f

Please sign in to comment.