Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Snapshots:2023.03
cobbler
fix_regression_empty_interface_type.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_regression_empty_interface_type.patch of Package cobbler
From 11fcfb456af458c856676002951b15e9ccc76a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= <psuarezhernandez@suse.com> Date: Wed, 23 Nov 2022 10:41:21 +0000 Subject: [PATCH] Fix regression: allow empty string as interface_type value --- cobbler/items/system.py | 2 ++ 1 file changed, 2 insertions(+) Index: cobbler-3.3.3/cobbler/items/system.py =================================================================== --- cobbler-3.3.3.orig/cobbler/items/system.py +++ cobbler-3.3.3/cobbler/items/system.py @@ -405,6 +405,8 @@ class NetworkInterface: raise ValueError("intf_type with number \"%s\" was not a valid interface type!" % intf_type) \ from value_error elif isinstance(intf_type, str): + if not intf_type: + intf_type = "na" try: intf_type = enums.NetworkInterfaceType[intf_type.upper()] except KeyError as key_error:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor