Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for missing Label for platform on docker container #3784

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

slaven
Copy link

@slaven slaven commented Dec 7, 2024

A minor fix that should be implemented in case of missing docker container Label platform.

Get-BcContainerPlatformVersion can return an empty string, which results in as a soft error, hard to track because it runs inside of container.

The error:
Cannot convert value "" to type "System.Version". Error: "Version string portion was too short or too long. (Parameter 'input')"

I tried to be consistent how you handle soft errors for Get-BcContainerPlatformVersion. I used Get-BcContainerNavVersion as a fallback and additionally added a warning to point the user in the right direction to fix it.

@slaven slaven requested a review from a team as a code owner December 7, 2024 05:10
@freddydk
Copy link
Contributor

freddydk commented Dec 8, 2024

In what scenario would you have a container without the platform label?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants