From a9bc4ca3f897a86350f39a124a4b306454a753ee Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Thu, 8 Nov 2012 13:28:08 +0100 Subject: [PATCH] Version 2012-11-08 13:28 M src/hostinfo/yp.py --- src/hostinfo/yp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hostinfo/yp.py b/src/hostinfo/yp.py index d05f7be..b5284a2 100755 --- a/src/hostinfo/yp.py +++ b/src/hostinfo/yp.py @@ -114,7 +114,8 @@ def netgroup(tree): pass pass for k in tree._host_._interface_._kickstart_: - for ip in filter(lambda ip: not ip.alias[0] and not ip.vlan[0], + for ip in filter(lambda ip: (not ip.alias[0] and not ip.vlan[0] and + not ip.never[0]), k._parent._ip_): entry = "(%s,,)" % fqn(tree, ip)[0:-1] key = "ks-%s" % k.file[0:] -- GitLab