Fix response status in node rendition request

This commit is contained in:
Alex Mukha
2019-07-27 13:23:00 +01:00
parent e246eb31cf
commit 1de92e61c4

View File

@@ -442,7 +442,7 @@ public class Node extends ModelRequest<Node>
renditionId);
RestResponse response = restWrapper.process(request);
int retry = 0;
while (response.getStatusCode().equals(HttpStatus.NOT_FOUND.toString()) && retry < Utility.retryCountSeconds)
while (Integer.valueOf(response.getStatusCode()).equals(HttpStatus.NOT_FOUND.value()) && retry < Utility.retryCountSeconds)
{
Utility.waitToLoopTime(1);
response = restWrapper.process(request);