Skip to content
New issue

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

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

Already on GitHub? # to your account

config-manager: improve systemd unit listing #211

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

fmuyassarov
Copy link
Collaborator

@fmuyassarov fmuyassarov commented Dec 21, 2023

Don't rely on ListUnitsByPatternsContext method as it might be too new
and missing in some of the distros like Amazon Linux 2. Instead
filter out active units and then loop over those to check if either
containerd or cri-o units exist.

@fmuyassarov fmuyassarov marked this pull request as ready for review December 21, 2023 15:09
Copy link
Collaborator

@klihub klihub left a comment

Choose a reason for hiding this comment

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

Small nit, otherwise LGTM.

Don't rely on ListUnitsByPatternsContext method as it might be too
new and missing in some of the distros like Amazon Linux 2. Instead
filter out active units and then loop over those to check if either
containerd or cri-o units exist.

Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
Copy link
Collaborator

@klihub klihub left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Collaborator

@kad kad left a comment

Choose a reason for hiding this comment

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

Lgtm

@kad kad merged commit 75dc0ea into containers:main Dec 22, 2023
@fmuyassarov fmuyassarov deleted the manager-unit branch January 25, 2024 08:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants