From 5e3ae1cf78cbd7dd122ed229add39e89aefdc21e Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 3 May 2017 16:47:04 +0100 Subject: [policies/redhat] accept 'oci' as a valid container type Currently the Red Hat container policy accepts 'container=docker' as a valid indication that we are running in a container and to enable sysroot and host sysroot checks. More recent Red Hat container infrastructure has change to setting 'container=oci', so recognise this value as well. Signed-off-by: Bryn M. Reeves --- sos/policies/redhat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py index a1565c63..a6e3712c 100644 --- a/sos/policies/redhat.py +++ b/sos/policies/redhat.py @@ -84,7 +84,7 @@ class RedHatPolicy(LinuxPolicy): specific initialisation based on ENV_HOST_SYSROOT. """ if ENV_CONTAINER in os.environ: - if os.environ[ENV_CONTAINER] == 'docker': + if os.environ[ENV_CONTAINER] in ['docker', 'oci']: self._in_container = True if ENV_HOST_SYSROOT in os.environ: self._host_sysroot = os.environ[ENV_HOST_SYSROOT] -- cgit