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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to