Skip to content

Conversation

@paxue
Copy link
Collaborator

@paxue paxue commented Dec 9, 2025

add security profile parsing support for marketplace image when input string,
e.g. "MicrosoftWindowsServer WindowsServer 2022-datacenter-g2 latest [secureboot]"

@paxue paxue requested a review from LiliDeng as a code owner December 9, 2025 20:28
Comment on lines +822 to 824
f"or '<Publisher>:<Offer>:<Sku>:<Version>' "
f"or '<Publisher> <Offer> <Sku> <Version> [Profile1,Profile2]'"
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a new pattern for images in Azure?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are in discussion about this method. Maybe this PR will be abondoned

Comment on lines +769 to +771
security_profile_match = re.search(r"\[(.*?)\]$", self.marketplace_raw)
security_profile_str = None
marketplace_base = self.marketplace_raw
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you instead use one of the utility methods in lisa/lisa/util/init.py, like find_patterns_in_lines, get_matched_str

@paxue paxue closed this Dec 11, 2025
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.

3 participants