summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-05-19 11:34:15 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-05-23 11:37:16 -0700
commit1c203dd51a9b54434be78c7515e0ba329b9e3e54 (patch)
tree887873989d333d6f82733fcf8ff85316c7a9fe8f
parent92cb65508c198d04fb12e1e99475c80bd8a16c4a (diff)
downloadchef-1c203dd51a9b54434be78c7515e0ba329b9e3e54.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.rb3
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.