From 0ce469970d6b04cf4060aef9d90c67082e5bd590 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 04 2021 06:16:40 +0000 Subject: Apply patch 0019-fix-config-bool-values-in-dict-based-import-export.patch patch_name: 0019-fix-config-bool-values-in-dict-based-import-export.patch present_in_specfile: true location_in_specfile: 19 --- diff --git a/src/firewall/core/io/service.py b/src/firewall/core/io/service.py index cf343fe..0387b6c 100644 --- a/src/firewall/core/io/service.py +++ b/src/firewall/core/io/service.py @@ -96,7 +96,7 @@ class Service(IO_Object): conf = {} type_formats = dict([(x[0], x[1]) for x in self.IMPORT_EXPORT_STRUCTURE]) for key in type_formats: - if getattr(self, key): + if getattr(self, key) or isinstance(getattr(self, key), bool): conf[key] = copy.deepcopy(getattr(self, key)) return conf