We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e53548c commit 2019011Copy full SHA for 2019011
src/main/java/org/jenkinsci/plugins/vsphere/parameters/CloudSelectorParameter.java
@@ -35,8 +35,10 @@ public StringParameterValue getDefaultParameterValue() {
35
36
private StringParameterValue checkValue(StringParameterValue value) {
37
List<String> cloudNames = vSphereCloud.findAllVsphereCloudNames();
38
- if (!cloudNames.contains(value.value))
39
- throw new IllegalArgumentException("No vsphere cloud with name: " + value.value);
+ String check = String.valueOf(value.getValue());
+ if (!cloudNames.contains(check)) {
40
+ throw new IllegalArgumentException("No vsphere cloud with name: " + check);
41
+ }
42
return value;
43
}
44
0 commit comments