File tree Expand file tree Collapse file tree
src/main/java/es/upv/i3m/grycap/im Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ public class InfrastructureManager {
5252 private static final String REST_PARAMETER_NAME_CONTEXT = "context" ;
5353 private static final String REST_PARAMETER_NAME_ASYNC = "async" ;
5454 private static final String REST_PARAMETER_NAME_VMLIST = "vm_list" ;
55+ private static final String REST_PARAMETER_NAME_FORCE = "force" ;
5556
5657 private final ImClient imClient ;
5758
@@ -276,11 +277,12 @@ public void destroyInfrastructure(String infId) throws ImClientException {
276277 * @param infId
277278 * : infrastructure id
278279 * @param force
279- * : force parameter
280+ * : flag to specify that the infra will be from the IM although not
281+ all resources are deleted
280282 */
281283 public void destroyInfrastructureAsync (String infId , boolean force ) throws ImClientException {
282284 RestParameter asyncParameter = createCallParameters (REST_PARAMETER_NAME_ASYNC , true );
283- RestParameter forceParameter = createCallParameters ("force" , force );
285+ RestParameter forceParameter = createCallParameters (REST_PARAMETER_NAME_FORCE , force );
284286 getImClient ().delete (PATH_INFRASTRUCTURES + PATH_SEPARATOR + infId ,
285287 String .class , asyncParameter , forceParameter );
286288 }
You can’t perform that action at this time.
0 commit comments