Skip to content

Commit bbd5563

Browse files
b-deansethvargo
authored andcommitted
[COOK-3709] Change node['java']['jdk_dir'] => node['java']['java_home'] to match Java cookbook attribute renaming
Signed-off-by: Seth Vargo <sethvargo@gmail.com>
1 parent 5662036 commit bbd5563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def action_run # rubocop:disable MethodLength
4141
not_if { ::File.exists?(cli_jar) }
4242
end
4343

44-
java_home = node['jenkins']['java_home'] || (node.attribute?('java') ? node['java']['jdk_dir'] : nil)
44+
java_home = node['jenkins']['java_home'] || (node.attribute?('java') ? node['java']['java_home'] : nil)
4545
if java_home.nil?
4646
java = 'java'
4747
else

0 commit comments

Comments
 (0)