Skip to content

Commit 67063e8

Browse files
authored
skip alternatives patch (#729)
* fix missing skip_alternatives Signed-off-by: Dan Webb <dan.webb@damacus.io> * Fix missing skip_alternatives Signed-off-by: Dan Webb <dan.webb@damacus.io> --------- Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent 7564411 commit 67063e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ This file is used to list changes made in each version of the Java cookbook.
55
## Unreleased
66

77
Standardise files with files in sous-chefs/repo-management
8+
89
- Update the recommended Ruby VSCode extensions
10+
- Fix missing skip_alternatives property in openjdk_pkg_install
911

1012
## 13.1.0 - *2025-07-14*
1113

resources/openjdk_pkg_install.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
priority new_resource.alternatives_priority
5353
default new_resource.default
5454
reset_alternatives new_resource.reset_alternatives
55-
skip_alternatives new_resource.skip_alternatives
56-
action :set
55+
not_if { new_resource.skip_alternatives }
5756
end
5857
end
5958

@@ -62,6 +61,7 @@
6261
java_location new_resource.java_home
6362
bin_cmds new_resource.bin_cmds
6463
only_if { ::File.exist?(new_resource.java_home) }
64+
not_if { new_resource.skip_alternatives }
6565
action :unset
6666
end
6767

0 commit comments

Comments
 (0)