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