Commit 4f818caf authored by David Diederich's avatar David Diederich
Browse files

Merge branch 'ibm-cherry-picks-for-0.5' into 'release/0.5'

Ibm cherry picks for 0.5

See merge request !14
parents 930ca9d1 77923485
Pipeline #26035 passed with stages
in 38 minutes and 46 seconds
......@@ -25,4 +25,4 @@ include:
- project: 'osdu/platform/ci-cd-pipelines'
ref: 'release/0.5'
file: 'cloud-providers/ibm.yml'
file: 'cloud-providers/ibm-deploy-only.yml'
......@@ -86,8 +86,8 @@ public class EntitlementsApi {
if(memberInfo.getRole().trim().isEmpty()) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), "Role cannot be empty", "Role cannot be empty");
if(!(memberInfo.getRole().equalsIgnoreCase("MEMBER") || memberInfo.getRole().equalsIgnoreCase("OWNER"))) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), "Role need to be either MEMBER or OWNER", "Role need to be either MEMBER or OWNER");
if(!(memberInfo.getRole().equals("MEMBER") || memberInfo.getRole().equals("OWNER"))) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), "Invalid role provided", "Role need to be either MEMBER or OWNER");
try {
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