summaryrefslogtreecommitdiff
path: root/lib/chef/provider/directory.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-05-19 11:34:15 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-05-26 09:12:05 -0700
commit20d984833729273dd17c480e40027342aa6bd8b8 (patch)
tree2179fcf106df7abeba7df0b64d6028cf18a4b106 /lib/chef/provider/directory.rb
parentc68e7a0eca68a75a645e81c488335837babb76be (diff)
downloadchef-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
Diffstat (limited to 'lib/chef/provider/directory.rb')
-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.