Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/puppet/type/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def delimiter
# @return [Boolean] if the group exists on the system
# @api private
def exists?
provider.exists?
provider&.exists?
end
end
end
4 changes: 2 additions & 2 deletions lib/puppet/type/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module Puppet
end

def retrieve
if provider.exists?
if provider&.exists?
if provider.respond_to?(:is_role?) and provider.is_role?
:role
else
Expand Down Expand Up @@ -511,7 +511,7 @@ def insync?(current)
# @return [Boolean] if the user exists on the system
# @api private
def exists?
provider.exists?
provider&.exists?
end

newproperty(:roles, :parent => Puppet::Property::List, :required_features => :manages_roles) do
Expand Down