You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (viewDetails == null || viewDetails.size() <= 0) {
245
-
dv = EnumSet.of(VMDetails.all);
246
-
} else {
247
-
try {
248
-
ArrayList<VMDetails> dc = newArrayList<VMDetails>();
249
-
for (Stringdetail : viewDetails) {
250
-
dc.add(VMDetails.valueOf(detail));
251
-
}
252
-
dv = EnumSet.copyOf(dc);
253
-
} catch (IllegalArgumentExceptione) {
254
-
thrownewInvalidParameterValueException("The details parameter contains a non permitted value. The allowed values are " + EnumSet.allOf(VMDetails.class));
249
+
if (isViewDetailsEmpty()) {
250
+
if (_queryService.ReturnVmStatsOnVmList.value()) {
thrownewInvalidParameterValueException("The details parameter contains a non permitted value. The allowed values are " + EnumSet.allOf(VMDetails.class));
"If false, changes the listVirtualMachines default details to [group, nics, secgrp, tmpl, servoff, diskoff, backoff, iso, volume, min, affgrp], so that the VMs' stats" +
130
+
" are not returned by default when listing VMs; only when the 'stats' or 'all' detail is informed.", true, ConfigKey.Scope.Global);
0 commit comments