You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by yk...@apache.org on 2021/04/30 10:20:41 UTC

[incubator-datalab] branch DATALAB-2314 updated: [DATALAB-2314] - fixing restart

This is an automated email from the ASF dual-hosted git repository.

ykinash pushed a commit to branch DATALAB-2314
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2314 by this push:
     new 3c75710  [DATALAB-2314] - fixing restart
3c75710 is described below

commit 3c7571055209ed108e3dfa127e209e1dce5e2aee
Author: KinashYurii <ur...@gmail.com>
AuthorDate: Fri Apr 30 13:18:21 2021 +0300

    [DATALAB-2314] - fixing restart
---
 .../com/epam/datalab/properties/ExternalChangeProperties.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ExternalChangeProperties.java b/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ExternalChangeProperties.java
index c3375a4..19647a5 100644
--- a/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ExternalChangeProperties.java
+++ b/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ExternalChangeProperties.java
@@ -80,7 +80,7 @@ public class ExternalChangeProperties implements ChangePropertiesConst {
                                                 UserInfo userInfo, String url) {
         log.info("Trying to write {}, for external endpoint : {} , for user: {}",
                 name, ymlDTO.getEndpointName(), userInfo.getSimpleName());
-        if (ymlDTO.getEndpointName().equals(ChangePropertiesConst.LOCAL_ENDPOINT_NAME)
+        if (ymlDTO.getEndpointName().equals(LOCAL_ENDPOINT_NAME)
                 || name.equals(SELF_SERVICE)
                 || name.equals(GKE_SELF_SERVICE)) {
             changePropertiesService.writeFileFromString(ymlDTO.getYmlString(), name, path);
@@ -103,10 +103,12 @@ public class ExternalChangeProperties implements ChangePropertiesConst {
 
     private String findMethodName(String name) {
         switch (name) {
-            case "provisioning.yml": {
+            case "provisioning.yml":
+            case "provisioning": {
                 return "/provisioning-service";
             }
-            case "billing.yml": {
+            case "billing.yml":
+            case "billing": {
                 return "/billing";
             }
             default:

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org