KinashYurii commented on a change in pull request #1006:
URL: https://github.com/apache/incubator-datalab/pull/1006#discussion_r539138107



##########
File path: 
services/provisioning-service/src/main/java/com/epam/datalab/backendapi/core/response/handlers/ResourcesStatusCallbackHandler.java
##########
@@ -85,6 +87,16 @@ protected EnvStatusDTO parseOutResponse(JsonNode resultNode, 
EnvStatusDTO baseSt
         return baseStatus;
     }
 
+    private String CheckAndMapStatus(String status) {
+        if (status.toLowerCase().equals("terminated_with_errors")) {
+            log.trace("While parsing response changed: {} -> {}", status, 
UserInstanceStatus.TERMINATED);
+            return UserInstanceStatus.TERMINATED.toString();
+        } else {
+            return status;
+        }
+

Review comment:
       Ty, done.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to