summaryrefslogtreecommitdiff
path: root/lib/chef/provider/directory.rb
diff options
context:
space:
mode:
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.