Commit fdb737e9 authored by Spiros Koulouzis's avatar Spiros Koulouzis

if we have an exception delete topology

parent 80c787fa
......@@ -202,7 +202,7 @@ Accept: application/json
"property1" : "...",
"property2" : "..."
},
"type" : "PUBLIC",
"type" : "PRIVATE",
"key" : "...",
"name" : "..."
},
......@@ -483,7 +483,7 @@ Content-Type: application/json
"property1" : "...",
"property2" : "..."
},
"type" : "PRIVATE",
"type" : "PUBLIC",
"key" : "...",
"name" : "..."
},
......@@ -492,7 +492,7 @@ Content-Type: application/json
"property1" : "...",
"property2" : "..."
},
"type" : "PRIVATE",
"type" : "PUBLIC",
"key" : "...",
"name" : "..."
},
......@@ -726,7 +726,7 @@ Content-Type: application/json
"property1" : "...",
"property2" : "..."
},
"type" : "PUBLIC",
"type" : "PRIVATE",
"key" : "...",
"name" : "..."
},
......@@ -735,7 +735,7 @@ Content-Type: application/json
"property1" : "...",
"property2" : "..."
},
"type" : "PUBLIC",
"type" : "PRIVATE",
"key" : "...",
"name" : "..."
},
......
......@@ -716,9 +716,9 @@ public class ProvisionService {
}
private void parseDeleteResourcesResponse(List<MessageParameter> parameters, ProvisionResponse provisionInfo) {
for (MessageParameter p : parameters) {
System.err.println(p.getName() + " : " + p.getValue());
}
// for (MessageParameter p : parameters) {
// System.err.println(p.getName() + " : " + p.getValue());
// }
}
}
......@@ -342,10 +342,11 @@ public class Consumer extends DefaultConsumer {
response.setParameters(responseParameters);
return response;
} finally {
// if (tam != null) {
// tEngine.deleteAll(tam.wholeTopology, userCredential, userDatabase);
// }
} catch (Throwable ex) {
if (tam != null) {
tEngine.deleteAll(tam.wholeTopology, userCredential, userDatabase);
}
throw ex;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment