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

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