Skip to content

Commit 2dfa84b

Browse files
author
Mike Tutkowski
committed
CLOUDSTACK-5468: Configuration property should be optional
1 parent 4907a8f commit 2dfa84b

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/lifecycle/SolidFirePrimaryDataStoreLifeCycle.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,19 @@ public DataStore initialize(Map<String, Object> dsInfos) {
168168
details.put(SolidFireUtil.CLUSTER_DEFAULT_MAX_IOPS, String.valueOf(lClusterDefaultMaxIops));
169169
details.put(SolidFireUtil.CLUSTER_DEFAULT_BURST_IOPS_PERCENT_OF_MAX_IOPS, String.valueOf(fClusterDefaultBurstIopsPercentOfMaxIops));
170170

171-
String useMutualChapForVMware = getValue(SolidFireUtil.USE_MUTUAL_CHAP_FOR_VMWARE, url);
171+
String useMutualChapForVMware = Boolean.TRUE.toString();
172172

173-
if (useMutualChapForVMware == null || new Boolean(useMutualChapForVMware)) {
174-
useMutualChapForVMware = Boolean.TRUE.toString();
173+
try {
174+
useMutualChapForVMware = getValue(SolidFireUtil.USE_MUTUAL_CHAP_FOR_VMWARE, url);
175+
176+
if (useMutualChapForVMware == null || new Boolean(useMutualChapForVMware)) {
177+
useMutualChapForVMware = Boolean.TRUE.toString();
178+
}
179+
else {
180+
useMutualChapForVMware = Boolean.FALSE.toString();
181+
}
175182
}
176-
else {
177-
useMutualChapForVMware = Boolean.FALSE.toString();
183+
catch (Exception ex) {
178184
}
179185

180186
details.put(SolidFireUtil.USE_MUTUAL_CHAP_FOR_VMWARE, useMutualChapForVMware);

0 commit comments

Comments
 (0)