summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-10-06 10:43:50 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-10-06 10:43:50 -0700
commitcbc56072a96efae05df8c954762c767075bfe3b4 (patch)
treee77d28e37c08af3e8a1debbef68daed171d4b063 /lib/chef/provider/user.rb
parent4e3c825d55b678413e8219ab13a99cfb12fedaf7 (diff)
downloadchef-cbc56072a96efae05df8c954762c767075bfe3b4.tar.gz
fix manage_home provider inconsistencylcg/manage-home-consistency
on freebsd and mac we're now telling people to use `manage_home` instead of `supports[:manage_home]` but it doesn't actually work. fixes that so that it works now. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/user.rb')
-rw-r--r--lib/chef/provider/user.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/chef/provider/user.rb b/lib/chef/provider/user.rb
index 2bc4cc10bc..f6b088d333 100644
--- a/lib/chef/provider/user.rb
+++ b/lib/chef/provider/user.rb
@@ -210,6 +210,16 @@ class Chef
def check_lock
raise NotImplementedError
end
+
+ def non_unique?
+ # XXX: THIS GOES AWAY IN CHEF-13 AND BECOMES JUST new_resource.non_unique
+ new_resource.non_unique || new_resource.supports[:non_unique]
+ end
+
+ def managing_home_dir?
+ # XXX: THIS GOES AWAY IN CHEF-13 AND BECOMES JUST new_resource.manage_home
+ new_resource.manage_home || new_resource.supports[:manage_home]
+ end
end
end
end