File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
api/src/main/java/org/apache/cloudstack/api/command/user/template Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1616// under the License.
1717package org .apache .cloudstack .api .command .user .template ;
1818
19+ import org .apache .commons .lang3 .BooleanUtils ;
1920import org .apache .log4j .Logger ;
2021
2122import 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 /////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ def tearDown(self):
115115 cmd = deleteTemplate .deleteTemplateCmd ()
116116 cmd .id = temp .id
117117 cmd .zoneid = self .zone .id
118+ cmd .forced = True
118119 self .apiclient .deleteTemplate (cmd )
119120 except Exception as e :
120121 raise Exception ("Warning: Exception during cleanup : %s" % e )
You can’t perform that action at this time.
0 commit comments