You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dy...@apache.org on 2022/06/27 11:22:00 UTC

[incubator-datalab] branch DATALAB-2809 updated: add cloud provider to image role

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

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


The following commit(s) were added to refs/heads/DATALAB-2809 by this push:
     new bc2b9feb0 add cloud provider to image role
bc2b9feb0 is described below

commit bc2b9feb0ac3815c1addeab4653490a0cf7ca597
Author: Denys Yankiv <de...@gmail.com>
AuthorDate: Mon Jun 27 14:21:47 2022 +0300

    add cloud provider to image role
---
 .../datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java b/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java
index 5c9eaec4e..bbc8ad841 100644
--- a/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java
+++ b/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java
@@ -156,7 +156,7 @@ public class ImageExploratoryServiceImpl implements ImageExploratoryService {
             imageRoles.stream().forEach(role -> {
                 role.setId(String.format(role.getId(), image.getProject(), image.getEndpoint(), image.getName()));
                 role.setDescription(String.format(role.getDescription(), image.getFullName()));
-                role.setCloud(CloudProvider.valueOf(image.getCloudProvider()));
+                role.setCloud(endpointService.get(image.getEndpoint()).getCloudProvider());
                 role.setImages(new HashSet<>(Collections.singletonList(image.getFullName())));
             });
             userRoleDAO.insert(imageRoles);


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