microsoft / azurelinux

Linux OS for Azure 1P services and edge appliances
MIT License
4.08k stars 497 forks source link

Toolkit: Fix JSON parsing of util-linux commands. #9539

Open cwize1 opened 5 days ago

cwize1 commented 5 days ago

Prior to util-linux v2.37, when a command is outputting a list in JSON and there aren't any items, then stdout would be empty. This change checks for this scenario and handles it appropriately.


Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

Does this affect the toolchain?

NO

Bug

https://microsoft.visualstudio.com/OS/_workitems/edit/52123611

Test Methodology
cwize1 commented 5 days ago

The change looks good. From what I know, I think we're not allowing any changes, which are not considered 3.0 GA blockers, so can you check, if this change may go in? Personally, I think it's small and safe.

This is actively blocking ISO building for ARM64.

PawelWMS commented 2 days ago

The change looks good. From what I know, I think we're not allowing any changes, which are not considered 3.0 GA blockers, so can you check, if this change may go in? Personally, I think it's small and safe.

This is actively blocking ISO building for ARM64.

Sounds like a GA blocker then. Please add a link to the bug for this in the summary, so it's easier to track.

dmcilvaney commented 2 days ago

Added bug link https://microsoft.visualstudio.com/OS/_workitems/edit/52123611