func (s *platformImageService) ListImagesOrDefault(platformName string) ([]string, error) {
	imgs, err := s.ListImages(platformName)
	if err != nil && err == imageTypes.ErrPlatformImageNotFound {
		return []string{platformBasicImageName(platformName)}, nil
	}
	return imgs, err
}
func (s *platformImageService) ListImagesOrDefault(platformName string) ([]string, error) {
	imgs, err := s.ListImages(platformName)
	if err != nil && err == imageTypes.ErrPlatformImageNotFound {
		return []string{platformBasicImageName(platformName)}, nil
	}
	return imgs, err
}
func ( s * platformImageService ) ListImagesOrDefault ( platformName string ) ( [ ] string , error ) { imgs , err := s . ListImages ( platformName ) if err != nil && err == imageTypes . ErrPlatformImageNotFound { return [ ] string { platformBasicImageName ( platformName ) } , nil } return imgs , err }
// PlatformListImagesOrDefault returns basicImageName when platform is empty
// for backwards compatibility
PlatformListImagesOrDefault returns basicImageName when platform is empty for backwards compatibility