Skip to content

Commit 7f9b765

Browse files
author
Roderik van der Veer
committed
Foodcritic
1 parent 157fafa commit 7f9b765

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

providers/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def render_sudoer
102102
# Default action - install a single sudoer
103103
action :install do
104104
render_sudoer
105+
new_resource.updated_by_last_action(true)
105106
end
106107

107108
# Removes a user from the sudoers group

recipes/default.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@
5959
:sudoers_groups => node['authorization']['sudo']['groups'],
6060
:sudoers_users => node['authorization']['sudo']['users'],
6161
:passwordless => node['authorization']['sudo']['passwordless'],
62-
:include_sudoers_d => node['authorization']['sudo']['include_sudoers_d'],
63-
:agent_forwarding => node['authorization']['sudo']['agent_forwarding'],
64-
:sudoers_defaults => node['authorization']['sudo']['sudoers_defaults']
62+
:include_sudoers_d => node['authorization']['sudo']['include_sudoers_d']
6563
)
6664
end

0 commit comments

Comments
 (0)