diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-18 10:46:54 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-18 10:46:54 -0700 |
commit | dffde98d6228ccb4ea1dbd19d4db08edc62625b8 (patch) | |
tree | 39b5e058f3b435256123f437d2c7a8b39de923b4 /lib/chef/dsl | |
parent | 770ad9a6f575bf21d73c542756aeef311a2a8fbe (diff) | |
download | chef-dffde98d6228ccb4ea1dbd19d4db08edc62625b8.tar.gz |
remove dependency on Chef.run_context global state
introduce run_context.root_run_context that avoids global state
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r-- | lib/chef/dsl/declare_resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/dsl/declare_resource.rb b/lib/chef/dsl/declare_resource.rb index ed3083e1ca..2ebef98bd4 100644 --- a/lib/chef/dsl/declare_resource.rb +++ b/lib/chef/dsl/declare_resource.rb @@ -47,7 +47,7 @@ class Chef when Chef::RunContext rc when :root - Chef.run_context + run_context.root_run_context when :parent run_context.parent_run_context else |