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 ...@@ -202,7 +202,7 @@ Accept: application/json
"property1" : "...", "property1" : "...",
"property2" : "..." "property2" : "..."
}, },
"type" : "PUBLIC", "type" : "PRIVATE",
"key" : "...", "key" : "...",
"name" : "..." "name" : "..."
}, },
...@@ -483,7 +483,7 @@ Content-Type: application/json ...@@ -483,7 +483,7 @@ Content-Type: application/json
"property1" : "...", "property1" : "...",
"property2" : "..." "property2" : "..."
}, },
"type" : "PRIVATE", "type" : "PUBLIC",
"key" : "...", "key" : "...",
"name" : "..." "name" : "..."
}, },
...@@ -492,7 +492,7 @@ Content-Type: application/json ...@@ -492,7 +492,7 @@ Content-Type: application/json
"property1" : "...", "property1" : "...",
"property2" : "..." "property2" : "..."
}, },
"type" : "PRIVATE", "type" : "PUBLIC",
"key" : "...", "key" : "...",
"name" : "..." "name" : "..."
}, },
...@@ -726,7 +726,7 @@ Content-Type: application/json ...@@ -726,7 +726,7 @@ Content-Type: application/json
"property1" : "...", "property1" : "...",
"property2" : "..." "property2" : "..."
}, },
"type" : "PUBLIC", "type" : "PRIVATE",
"key" : "...", "key" : "...",
"name" : "..." "name" : "..."
}, },
...@@ -735,7 +735,7 @@ Content-Type: application/json ...@@ -735,7 +735,7 @@ Content-Type: application/json
"property1" : "...", "property1" : "...",
"property2" : "..." "property2" : "..."
}, },
"type" : "PUBLIC", "type" : "PRIVATE",
"key" : "...", "key" : "...",
"name" : "..." "name" : "..."
}, },
......
...@@ -716,9 +716,9 @@ public class ProvisionService { ...@@ -716,9 +716,9 @@ public class ProvisionService {
} }
private void parseDeleteResourcesResponse(List<MessageParameter> parameters, ProvisionResponse provisionInfo) { private void parseDeleteResourcesResponse(List<MessageParameter> parameters, ProvisionResponse provisionInfo) {
for (MessageParameter p : parameters) { // for (MessageParameter p : parameters) {
System.err.println(p.getName() + " : " + p.getValue()); // System.err.println(p.getName() + " : " + p.getValue());
} // }
} }
} }
...@@ -342,10 +342,11 @@ public class Consumer extends DefaultConsumer { ...@@ -342,10 +342,11 @@ public class Consumer extends DefaultConsumer {
response.setParameters(responseParameters); response.setParameters(responseParameters);
return response; return response;
} finally { } catch (Throwable ex) {
// if (tam != null) { if (tam != null) {
// tEngine.deleteAll(tam.wholeTopology, userCredential, userDatabase); 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