Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

feat(ubuntu): added support for Ubuntu ESM versions#430

Open
DmitriyLewen wants to merge 6 commits intoaquasecurity:mainfrom
DmitriyLewen:add_function_for_merge_osversion
Open

feat(ubuntu): added support for Ubuntu ESM versions#430
DmitriyLewen wants to merge 6 commits intoaquasecurity:mainfrom
DmitriyLewen:add_function_for_merge_osversion

Conversation

@DmitriyLewen
Copy link
Copy Markdown
Collaborator

@DmitriyLewen DmitriyLewen commented Mar 29, 2022

Description

Ubuntu has ESM program.
ESM status information is stored in thevar/lib/ubuntu-advantage/status.json file.

  • added parsing status.json file.
  • added function for merging OS versions.

Blockers

Comment on lines +307 to +314
if old.Name == esmVersionSuffix {
new.Name = new.Name + "-" + old.Name
return new
}
if new.Name == esmVersionSuffix {
new.Name = old.Name + "-" + new.Name
return new
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It is a bit tricky. What if we add Extended field to OS? Then, we can use the field for Extended LTS (Debian), Extended Life Cycle Support (Red Hat), and so on.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

@DmitriyLewen DmitriyLewen marked this pull request as ready for review June 20, 2022 05:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants