diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-05-19 11:34:15 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-05-26 09:12:05 -0700 |
commit | 20d984833729273dd17c480e40027342aa6bd8b8 (patch) | |
tree | 2179fcf106df7abeba7df0b64d6028cf18a4b106 | |
parent | c68e7a0eca68a75a645e81c488335837babb76be (diff) | |
download | chef-20d984833729273dd17c480e40027342aa6bd8b8.tar.gz |
directory resource needs to call FAC for DRR
the directory resource completely overrides DRR from the file resource,
but is missing the call into FAC in order to validation the owner and
group.
fixes issue #3390
-rw-r--r-- | lib/chef/provider/directory.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/provider/directory.rb b/lib/chef/provider/directory.rb index 416393ac60..4d5423d0e8 100644 --- a/lib/chef/provider/directory.rb +++ b/lib/chef/provider/directory.rb @@ -43,6 +43,9 @@ class Chef end def define_resource_requirements + # deep inside FAC we have to assert requirements, so call FACs hook to set that up + access_controls.define_resource_requirements + requirements.assert(:create) do |a| # Make sure the parent dir exists, or else fail. # for why run, print a message explaining the potential error. |