Blame SOURCES/0019-fix-config-bool-values-in-dict-based-import-export.patch
|
|
725d6a |
From cc9d8ac3501b1dc64d6b48990792a06637d69314 Mon Sep 17 00:00:00 2001
|
|
|
725d6a |
From: Eric Garver <eric@garver.life>
|
|
|
725d6a |
Date: Fri, 17 Apr 2020 14:45:16 -0400
|
|
|
725d6a |
Subject: [PATCH 19/45] fix(config): bool values in dict based import/export
|
|
|
725d6a |
|
|
|
725d6a |
Always export bool values.
|
|
|
725d6a |
|
|
|
725d6a |
(cherry picked from commit ae4b9b44ed8e9e62f47846f7032c19b559e3d7ad)
|
|
|
725d6a |
(cherry picked from commit 88016dc40ba2e119fe04e54724fb432404d7e8c1)
|
|
|
725d6a |
---
|
|
|
725d6a |
src/firewall/core/io/service.py | 2 +-
|
|
|
725d6a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
725d6a |
|
|
|
725d6a |
diff --git a/src/firewall/core/io/service.py b/src/firewall/core/io/service.py
|
|
|
725d6a |
index cf343fe0ce93..0387b6c798b0 100644
|
|
|
725d6a |
--- a/src/firewall/core/io/service.py
|
|
|
725d6a |
+++ b/src/firewall/core/io/service.py
|
|
|
725d6a |
@@ -96,7 +96,7 @@ class Service(IO_Object):
|
|
|
725d6a |
conf = {}
|
|
|
725d6a |
type_formats = dict([(x[0], x[1]) for x in self.IMPORT_EXPORT_STRUCTURE])
|
|
|
725d6a |
for key in type_formats:
|
|
|
725d6a |
- if getattr(self, key):
|
|
|
725d6a |
+ if getattr(self, key) or isinstance(getattr(self, key), bool):
|
|
|
725d6a |
conf[key] = copy.deepcopy(getattr(self, key))
|
|
|
725d6a |
return conf
|
|
|
725d6a |
|
|
|
725d6a |
--
|
|
|
725d6a |
2.27.0
|
|
|
725d6a |
|