Skip to content

Commit 0aed209

Browse files
committed
fix<ALT>: fixed fault exception when no provider as user/group was defined
! fixed fault exception when no provider as user/group was defined closes ALT bug https://bugzilla.altlinux.org/54857
1 parent e227c27 commit 0aed209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/type/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def insync?(current)
511511
# @return [Boolean] if the user exists on the system
512512
# @api private
513513
def exists?
514-
provider.exists?
514+
provider&.exists?
515515
end
516516

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

0 commit comments

Comments
 (0)