Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
firewalld.9168
0001-firewall-core-fw_nm-nm_get_zone_of_connect...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-firewall-core-fw_nm-nm_get_zone_of_connection-should.patch of Package firewalld.9168
From 2534a826745a5bb4c7d1d4a112399d7f8ebd216e Mon Sep 17 00:00:00 2001 From: Farenjihn <farenjihn@gmail.com> Date: Fri, 17 Aug 2018 11:58:55 +0200 Subject: [PATCH] firewall/core/fw_nm: nm_get_zone_of_connection should return None or empty string instead of False (cherry picked from commit 5a59a90f449a8bf836e62e2d9ad486301b1aa2bb) --- src/firewall/core/fw_nm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/firewall/core/fw_nm.py b/src/firewall/core/fw_nm.py index 8b900118..37282a1a 100644 --- a/src/firewall/core/fw_nm.py +++ b/src/firewall/core/fw_nm.py @@ -84,12 +84,12 @@ def nm_get_zone_of_connection(connection): try: if con.get_flags() & (NM.SettingsConnectionFlags.NM_GENERATED | NM.SettingsConnectionFlags.NM_VOLATILE): - return False + return "" except AttributeError: # Prior to NetworkManager 1.12, we can only guess # that a connection was generated/volatile. if con.get_unsaved(): - return False + return "" zone = setting_con.get_zone() if zone is None: -- 2.19.1
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