From ca2287f7adeb0c6198bca4096db4fb51dd31545e Mon Sep 17 00:00:00 2001 From: gcc_2023 Date: Mon, 20 Mar 2023 14:12:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=20the=20bug=20that=20the=20persistentnetnam?= =?UTF-8?q?esdisable=20actor=20cannot=20obtain=20th=E2=80=A6=20=E2=80=A6e?= =?UTF-8?q?=20information=20of=20the=20virtio=20type=20network=20card?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repos/system_upgrade/el7toel8/libraries/persistentnetnames.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/system_upgrade/el7toel8/libraries/persistentnetnames.py b/repos/system_upgrade/el7toel8/libraries/persistentnetnames.py index 56ed00b8..2253b496 100644 --- a/repos/system_upgrade/el7toel8/libraries/persistentnetnames.py +++ b/repos/system_upgrade/el7toel8/libraries/persistentnetnames.py @@ -20,6 +20,9 @@ def pci_info(path): """ pci = {} + if path.startswith('virtio-pci-'): + path = path[7:] + # TODO(msekleta): check that path argument actually has ID_PATH format if path.startswith('pci-'): components = path[4:16].split(':') -- Gitee