From 70742ebc27ed7b39c36eb26a7f6d63d07a753601 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 --- .../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 15f38d268..3f5ff5644 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 @@ -11,8 +11,8 @@ import pytest def _is_apt(): - info = distro.linux_distribution() - return info[0].startswith('Ubuntu') + info = distro.id() + return info == 'ubuntu' def _is_dnf():