Blame SOURCES/0020-fix-dbus-service-don-t-cleanup-config-for-old-set-AP.patch

8072fb
From 8d48dfee165ad41ed2d235dc3772c5b588a75521 Mon Sep 17 00:00:00 2001
8072fb
From: Eric Garver <eric@garver.life>
8072fb
Date: Mon, 4 May 2020 10:48:10 -0400
8072fb
Subject: [PATCH 20/45] fix(dbus): service: don't cleanup config for old set
8072fb
 APIs
8072fb
8072fb
This avoids them from unknowingly wiping away config that the old APIs
8072fb
are unaware of.
8072fb
8072fb
Fixes: 335a68c1bba5 ("fix: dbus: fix service API break")
8072fb
(cherry picked from commit 11bd8742158b2b3c9b0412a9ca1cb9ada7fd6fd7)
8072fb
(cherry picked from commit faa5822d8073336bed29e12b7cc73bedfa4811b7)
8072fb
---
8072fb
 src/firewall/core/fw_config.py | 2 --
8072fb
 1 file changed, 2 deletions(-)
8072fb
8072fb
diff --git a/src/firewall/core/fw_config.py b/src/firewall/core/fw_config.py
8072fb
index 8f29f0c416d2..35f623f2c8f1 100644
8072fb
--- a/src/firewall/core/fw_config.py
8072fb
+++ b/src/firewall/core/fw_config.py
8072fb
@@ -566,7 +566,6 @@ class FirewallConfig(object):
8072fb
 
8072fb
         if obj.builtin:
8072fb
             x = copy.copy(obj)
8072fb
-            x.cleanup()
8072fb
             x.import_config(conf_dict)
8072fb
             x.path = config.ETC_FIREWALLD_SERVICES
8072fb
             x.builtin = False
8072fb
@@ -576,7 +575,6 @@ class FirewallConfig(object):
8072fb
             service_writer(x)
8072fb
             return x
8072fb
         else:
8072fb
-            obj.cleanup()
8072fb
             obj.import_config(conf_dict)
8072fb
             service_writer(obj)
8072fb
             return obj
8072fb
-- 
8072fb
2.27.0
8072fb