Skip to content

Commit

Permalink
explictly use the change action for udevadm trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Cook committed Oct 8, 2016
1 parent 4abfdeb commit 2f5addf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'debian': {
$udev_package = 'udev'
$udevlogpriority = 'udevadm control --log-priority'
$udevtrigger = 'udevadm trigger'
$udevtrigger = 'udevadm trigger --action=change'
}
'redhat': {
if $::operatingsystem == 'Fedora' {
Expand All @@ -30,12 +30,12 @@
}
'6': {
$udev_package = 'udev'
$udevtrigger = 'udevadm trigger'
$udevtrigger = 'udevadm trigger --action=change'
$udevlogpriority = 'udevadm control --log-priority'
}
'7': {
$udev_package = 'systemd'
$udevtrigger = 'udevadm trigger'
$udevtrigger = 'udevadm trigger --action=change'
$udevlogpriority = 'udevadm control --log-priority'
}
default: {
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/udevadm/trigger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

it { should contain_class('udev::udevadm::trigger') }
it do
should contain_exec('udevadm trigger').with({
should contain_exec('udevadm trigger --action=change').with({
:refreshonly => true,
:path => ['/sbin'],
})
Expand Down

0 comments on commit 2f5addf

Please sign in to comment.