Commit 8a0b21da authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Tests - Tools - Firewall Agent:

- Fixed manual instantiation of chain object
parent 59604806
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -49,10 +49,10 @@ class Chain:
    ) -> 'Chain':
    ) -> 'Chain':
        chain : 'Chain' = cls(family, table, name)
        chain : 'Chain' = cls(family, table, name)
        chain.handle = handle
        chain.handle = handle
        if type_ is None: type_ = str(table.value).lower()
        if type_ is None: chain.type = str(table.value).lower()
        if hook is None: hook = str(name).lower()
        if hook is None: chain.hook = str(name).lower()
        chain.prio = prio
        chain.prio = prio
        chain.policy = policy
        chain.policy = policy.value
        return chain
        return chain


    @classmethod
    @classmethod