Skip to content

Commit 9bf9bf6

Browse files
committed
Added force parameter
1 parent 90f4700 commit 9bf9bf6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/es/upv/i3m/grycap/im/InfrastructureManager.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,14 @@ public void destroyInfrastructure(String infId) throws ImClientException {
275275
*
276276
* @param infId
277277
* : infrastructure id
278+
* @param force
279+
* : force parameter
278280
*/
279-
public void destroyInfrastructureAsync(String infId) throws ImClientException {
281+
public void destroyInfrastructureAsync(String infId, boolean force) throws ImClientException {
280282
RestParameter asyncParameter = createCallParameters(REST_PARAMETER_NAME_ASYNC, true);
283+
RestParameter forceParameter = createCallParameters("force", force);
281284
getImClient().delete(PATH_INFRASTRUCTURES + PATH_SEPARATOR + infId,
282-
String.class, asyncParameter);
285+
String.class, asyncParameter, forceParameter);
283286
}
284287

285288
/**

0 commit comments

Comments
 (0)