-
Notifications
You must be signed in to change notification settings - Fork 373
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
AMA is not supported on cbl-mariner 1.0 #3002
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ def __init__(self, publisher: str, ext_type: str, version: str): | |
|
||
unsupported_distros: Dict[str, List[str]] = { | ||
"Microsoft.OSTCExtensions.VMAccessForLinux": ["flatcar"], | ||
"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent": ["flatcar"] | ||
"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent": ["flatcar", "mariner_1"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. get_distro.py produces _ and here we are only using the name ("flatcar") There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We check if any of these are a substring in the result of get_distro.py. This check is on Line 45 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we only put distro name in this list, then we know that extension doesn't support any version of the distro. If we put 'name_version' then we can mark that the extension only excludes a certain version. I did this since mariner_1 is unsupported by AMA, but mariner_2 is supported |
||
} | ||
|
||
def supports_distro(self, system_info: str) -> bool: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use "uname -a" to check the distro in multiple places in the code. I am concerned with updating only this one instance.
Actually, maybe we should use get_distro(), in the Agent's code to do this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use get_distro to get distro name and version for all test suites which use "uname -a"