Skip to content

Commit

Permalink
[COOK-3654] Do not run node.load_attribute_by_short_filename on Che…
Browse files Browse the repository at this point in the history
…f 11

Signed-off-by: Seth Vargo <[email protected]>
  • Loading branch information
cap10morgan authored and sethvargo committed Sep 30, 2013
1 parent a0a32fd commit 01f9063
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@

ruby_block "reload_ruby" do
block do
node.load_attribute_by_short_filename('default', 'passenger_apache2')
# Only available on Chef 10.x, but only needed there anyway
if node.respond_to?(:load_attribute_by_short_filename)
node.load_attribute_by_short_filename('default', 'passenger_apache2')
end
end

action :nothing
Expand Down

0 comments on commit 01f9063

Please sign in to comment.