Projects
home:Eustace:branches:Eulaceura:Factory
anaconda
_service:obs_scm:bugfix-adapt-active-connection...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:bugfix-adapt-active-connection-without-interface-name.patch of Package anaconda
From ade550fb89b10cf218ce96541e1c540a2a8a7ea1 Mon Sep 17 00:00:00 2001 From: sun_hai_10 <sunha10@huawei.com> Date: Wed, 14 Dec 2022 11:04:41 +0800 Subject: [PATCH] adapt active connection without interface-name --- pyanaconda/modules/network/initialization.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyanaconda/modules/network/initialization.py b/pyanaconda/modules/network/initialization.py index c7f0ba4..85a1da7 100644 --- a/pyanaconda/modules/network/initialization.py +++ b/pyanaconda/modules/network/initialization.py @@ -136,6 +136,9 @@ class ApplyKickstartTask(Task): def _find_initramfs_connection_of_iface(self, nm_client, iface): device = nm_client.get_device_by_iface(iface) if device: + active_connection = device.get_active_connection() + if active_connection: + return active_connection.get_connection() cons = device.get_available_connections() for con in cons: if con.get_interface_name() == iface and con.get_id() == iface: -- 2.23.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2