Skip to content

Commit 6bb87ba

Browse files
[release/9.0.2xx] allow reading all mcr image names (#45906)
Co-authored-by: Chet Husk <[email protected]>
1 parent 5bb08f9 commit 6bb87ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Containers/Microsoft.NET.Build.Containers/Tasks/ComputeDotnetBaseImageAndTag.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ private bool ComputeRepositoryAndTag([NotNullWhen(true)] out string? repository,
320320
};
321321
}
322322

323-
private bool UserImageIsMicrosoftBaseImage => UserBaseImage?.StartsWith("mcr.microsoft.com/dotnet") ?? false;
323+
private bool UserImageIsMicrosoftBaseImage => UserBaseImage?.StartsWith("mcr.microsoft.com/") ?? false;
324324

325325
private void LogNoInferencePerformedTelemetry()
326326
{
327-
// we should only log the base image, tag, containerFamily if we _know_ they are .NET's MCR images
327+
// we should only log the base image, tag, containerFamily if we _know_ they are MCR images
328328
string? userBaseImage = null;
329329
string? userTag = null;
330330
string? containerFamily = null;

0 commit comments

Comments
 (0)