Skip to content

Commit 29ac938

Browse files
default value of force should be false
1 parent 939ee9e commit 29ac938

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/template/DeleteTemplateCmd.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// under the License.
1717
package org.apache.cloudstack.api.command.user.template;
1818

19+
import org.apache.commons.lang3.BooleanUtils;
1920
import org.apache.log4j.Logger;
2021

2122
import org.apache.cloudstack.api.APICommand;
@@ -67,8 +68,9 @@ public Long getZoneId() {
6768
}
6869

6970
public boolean isForced() {
70-
return (forced != null) ? forced : true;
71+
return BooleanUtils.toBooleanDefaultIfNull(forced, false);
7172
}
73+
7274
/////////////////////////////////////////////////////
7375
/////////////// API Implementation///////////////////
7476
/////////////////////////////////////////////////////

0 commit comments

Comments
 (0)