in Editor/Window/Containers/ContainersUserInput.cs [303:321]
private void PopulateECRImagesDropdown(string repositoryName)
{
if (_stateManager.IsBootstrapped() && _stateManager.IsInContainersRegion())
{
if (!string.IsNullOrEmpty(repositoryName))
{
var images = _coreApi.ListECRImages(_stateManager.ProfileName, _stateManager.Region, repositoryName);
List<string> choices = images.ECRImages.Select(image => string.IsNullOrEmpty(image.ImageTag) ? image.ImageDigest : image.ImageTag).ToList();
_selectECRImageDropdownContainer.choices = choices;
if (!string.IsNullOrEmpty(_stateManager.ContainerECRImageId) && choices.Contains(_stateManager.ContainerECRImageId))
{
_selectECRImageDropdownContainer.value = _stateManager.ContainerECRImageId;
return;
}
}
}
_selectECRImageDropdownContainer.value = null;
_stateManager.ContainerECRImageId = null;
}