We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 939ee9e commit 29ac938Copy full SHA for 29ac938
api/src/main/java/org/apache/cloudstack/api/command/user/template/DeleteTemplateCmd.java
@@ -16,6 +16,7 @@
16
// under the License.
17
package org.apache.cloudstack.api.command.user.template;
18
19
+import org.apache.commons.lang3.BooleanUtils;
20
import org.apache.log4j.Logger;
21
22
import org.apache.cloudstack.api.APICommand;
@@ -67,8 +68,9 @@ public Long getZoneId() {
67
68
}
69
70
public boolean isForced() {
- return (forced != null) ? forced : true;
71
+ return BooleanUtils.toBooleanDefaultIfNull(forced, false);
72
73
+
74
/////////////////////////////////////////////////////
75
/////////////// API Implementation///////////////////
76
0 commit comments