From db4becf21014d75537da5766b9610c51fb43d69d Mon Sep 17 00:00:00 2001 From: wqian Date: Fri, 18 Oct 2024 09:49:42 +0100 Subject: [PATCH] Fix the check condition of container --- shared/applicability/container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/applicability/container.yml b/shared/applicability/container.yml index fcb8874732a..f7f29f24bd8 100644 --- a/shared/applicability/container.yml +++ b/shared/applicability/container.yml @@ -1,5 +1,5 @@ name: cpe:/a:container title: Container check_id: installed_env_is_a_container -bash_conditional: '[ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]' +bash_conditional: '[ -f /.dockerenv ] || [ -f /run/.containerenv ]' ansible_conditional: 'ansible_virtualization_type in ["docker", "lxc", "openvz", "podman", "container"]'