diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-06 10:43:50 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-06 10:43:50 -0700 |
commit | cbc56072a96efae05df8c954762c767075bfe3b4 (patch) | |
tree | e77d28e37c08af3e8a1debbef68daed171d4b063 /lib/chef/provider/user.rb | |
parent | 4e3c825d55b678413e8219ab13a99cfb12fedaf7 (diff) | |
download | chef-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.rb | 10 |
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 |