From 0fff9878e7b702593084f807e5412ddebeb9661f Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 31 Oct 2024 14:30:08 +0100 Subject: [PATCH] CI: Replace deprecated distro.linux_distribution Change-Id: If0f3ab6f26aa774cf6176d992ec1180f2c0d7838 (cherry picked from commit 70742ebc27ed7b39c36eb26a7f6d63d07a753601) --- .../tests/test_overcloud_host_configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/kayobe-overcloud-host-configure-base/tests/test_overcloud_host_configure.py b/playbooks/kayobe-overcloud-host-configure-base/tests/test_overcloud_host_configure.py index 1a1965723..35406eefc 100644 --- a/playbooks/kayobe-overcloud-host-configure-base/tests/test_overcloud_host_configure.py +++ b/playbooks/kayobe-overcloud-host-configure-base/tests/test_overcloud_host_configure.py @@ -12,8 +12,8 @@ def _is_apt(): - info = distro.linux_distribution() - return info[0].startswith('Ubuntu') + info = distro.id() + return info == 'ubuntu' def _is_dnf():