From df8ad3e86648f2550461fc8f1e8e47ac923da13a Mon Sep 17 00:00:00 2001 From: Giulio Date: Fri, 25 Jun 2021 10:50:21 +0200 Subject: [PATCH] Forwarding succesfully added e saved in XML --- qubes/firewall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/firewall.py b/qubes/firewall.py index fed1358b..2a278a92 100644 --- a/qubes/firewall.py +++ b/qubes/firewall.py @@ -388,14 +388,14 @@ class Rule(qubes.PropertyHolder): @qubes.events.handler('property-set:forwardtype') def on_set_forwardtype(self, event, name, newvalue, oldvalue=None): # pylint: disable=unused-argument - if self.action is not 'forward': + if self.action != 'forward': raise ValueError( 'forwardtype valid only for forward action') @qubes.events.handler('property-set:srcports') def on_set_srcports(self, event, name, newvalue, oldvalue=None): # pylint: disable=unused-argument - if self.action is not 'forward': + if self.action != 'forward': raise ValueError( 'srcports valid only for forward action')