From 39af9bddebfe9bfbb4e9437d3d9f76f51da5f818 Mon Sep 17 00:00:00 2001 From: lucasgarfield Date: Tue, 7 Mar 2023 10:36:21 +0100 Subject: [PATCH] ImagesTable: Only show Launch link for images using sources The Launch service wizard should only be used to launch AWS images that were created using share_with_sources (and not share_with_accounts) in their request. The Launch service only supports a single source at the moment, as does the Image Builder Frontend. Therefore, we do not pass the entire share_with_sources array - only the 0th element, which should be the `only` source for images created using the front-end. We do not expect full compatibility between images created using the API (which could theoretically have multiple sources in share_with_sources) and Image Builder Frontend. --- src/Components/ImagesTable/ImageLink.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/ImagesTable/ImageLink.js b/src/Components/ImagesTable/ImageLink.js index a11d34c0..dd9e149a 100644 --- a/src/Components/ImagesTable/ImageLink.js +++ b/src/Components/ImagesTable/ImageLink.js @@ -35,7 +35,7 @@ const ProvisioningLink = ({ imageId, isExpired, isInClonesTable }) => { ); const provider = getImageProvider(image); - if (!error) { + if (!error && image.share_with_sources) { return (