firewalld/firewalld-0.3.3-rich_rule_import.patch
2013-06-07 13:06:32 +02:00

21 lines
633 B
Diff

commit f428939c42560ba3aad5c2bfa5b95bb8185d75ed
Author: Thomas Woerner <twoerner@redhat.com>
Date: Fri Jun 7 12:48:56 2013 +0200
Use Rich_Rule.check in _import_from_string
diff --git a/src/firewall/core/rich.py b/src/firewall/core/rich.py
index fd27914..a643d16 100644
--- a/src/firewall/core/rich.py
+++ b/src/firewall/core/rich.py
@@ -418,8 +418,7 @@ class Rich_Rule(object):
index = index + 1
- if not self.element:
- raise FirewallError(INVALID_RULE, "no element")
+ self.check()
def check(self):
if self.family != None and self.family not in [ "ipv4", "ipv6" ]: