X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fmusic%2Frest%2FRestMusicLocksAPI.java;fp=src%2Fmain%2Fjava%2Forg%2Fonap%2Fmusic%2Frest%2FRestMusicLocksAPI.java;h=079fe97c0537f3b0b06d22dfe7b0e3149b05662b;hb=9943f1e32b2db7f40ec77243ea235c889eded8f9;hp=e27c08ee30bcd8c5775b91e3e45e3aa0e3d75c01;hpb=641255c612fae09ff8840124eb7dcf5046083dd0;p=music.git diff --git a/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java b/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java index e27c08ee..079fe97c 100644 --- a/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java +++ b/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java @@ -263,7 +263,7 @@ public class RestMusicLocksAPI { } @GET - @Path("/getCurrentLockHolders/{lockname}") + @Path("/holders/{lockname}") @ApiOperation(value = "Get Lock Holders", notes = "Gets the current Lock Holders", response = Map.class) @@ -335,7 +335,7 @@ public class RestMusicLocksAPI { String who = MusicCore.whoseTurnIsIt(lockName); ResultType status = ResultType.SUCCESS; String error = ""; - if ( who == null ) { + if ( who == null ) { status = ResultType.FAILURE; error = "There was a problem getting the lock holder"; logger.error(EELFLoggerDelegate.errorLogger,"There was a problem getting the lock holder", AppMessages.INCORRECTDATA ,ErrorSeverity.CRITICAL, ErrorTypes.GENERALSERVICEERROR);