Code Review
/
aai
/
esr-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix the return data of delete and query API.
[aai/esr-server.git]
/
esr-mgr
/
src
/
main
/
java
/
org
/
onap
/
aai
/
esr
/
wrapper
/
ThirdpatySdncWrapper.java
diff --git
a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java
b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java
index
0dfd45a
..
9e6f3f8
100644
(file)
--- a/
esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java
+++ b/
esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java
@@
-105,7
+105,7
@@
public class ThirdpatySdncWrapper {
} catch (Exception e) {
e.printStackTrace();
LOG.error("Query thirdparty SDNC list failed !");
} catch (Exception e) {
e.printStackTrace();
LOG.error("Query thirdparty SDNC list failed !");
- return Response.
serverError
().build();
+ return Response.
ok
().build();
}
}
}
}
@@
-126,7
+126,7
@@
public class ThirdpatySdncWrapper {
if (resourceVersion != null) {
try {
ExternalSystemProxy.deleteThirdpartySdnc(thirdpartySdncId, resourceVersion);
if (resourceVersion != null) {
try {
ExternalSystemProxy.deleteThirdpartySdnc(thirdpartySdncId, resourceVersion);
- return Response.
ok
().build();
+ return Response.
noContent
().build();
} catch (Exception e) {
e.printStackTrace();
LOG.error("Delete VNFM from A&AI failed! thirdparty SDNC ID: " + thirdpartySdncId + "resouce-version:"
} catch (Exception e) {
e.printStackTrace();
LOG.error("Delete VNFM from A&AI failed! thirdparty SDNC ID: " + thirdpartySdncId + "resouce-version:"
@@
-135,7
+135,7
@@
public class ThirdpatySdncWrapper {
}
} else {
LOG.error("resouce-version is null ! Can not delete resouce from A&AI. ");
}
} else {
LOG.error("resouce-version is null ! Can not delete resouce from A&AI. ");
- return Response.
serverError
().build();
+ return Response.
noContent
().build();
}
}
}
}