Skip to content

Commit 36166a4

Browse files
authored
[JENKINS-61131] Fix broken credentials selection (#116)
Signed-off-by: Harald Albers <github@albersweb.de>
1 parent 0ae12dc commit 36166a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/vsphere/VSphereConnectionConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public ListBoxModel doFillCredentialsIdItems(@AncestorInPath AbstractFolder<?> c
142142
@QueryParameter String vsHost) {
143143
throwUnlessUserHasPermissionToConfigureCloud(containingFolderOrNull);
144144
return new StandardListBoxModel().includeEmptyValue()
145-
.includeMatching(Jenkins.getInstance(), StandardCredentials.class,
145+
.includeMatchingAs(ACL.SYSTEM, Jenkins.getInstance(), StandardCredentials.class,
146146
Collections.singletonList(getDomainRequirement(vsHost)), CREDENTIALS_MATCHER);
147147
}
148148

0 commit comments

Comments
 (0)