From 1691f1b780924d1416bc340b1ab268e7efa70e39 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 18 Jul 2015 14:32:02 +0200 Subject: 3 lass.iptables: fix broken predicate check --- 3modules/lass/iptables.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3modules/lass/iptables.nix b/3modules/lass/iptables.nix index b78879d..c97b9f7 100644 --- a/3modules/lass/iptables.nix +++ b/3modules/lass/iptables.nix @@ -124,7 +124,7 @@ let buildRule = tn: cn: rule: #target validation test: - assert (elemIsIn rule.target ([ "ACCEPT" "REJECT" "DROP" "QUEUE" "LOG" "RETURN" ] ++ ts."${tn}"."${cn}")); + assert (elemIsIn rule.target ([ "ACCEPT" "REJECT" "DROP" "QUEUE" "LOG" "RETURN" ] ++ (attrNames ts."${tn}"))); #predicate validation test: #maybe use iptables-test -- cgit v1.2.3