From fdb706b63199093f465eb43926468cfd74cc4009 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 3 Jul 2012 16:29:28 +0000 Subject: [PATCH] Have policy table recognize the name '*' to mean any valid name, but must have some name git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13233 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/xcatd.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/xcatd.pm b/xCAT-server/lib/perl/xCAT/xcatd.pm index 6bd6f3292..9bd5f09f8 100644 --- a/xCAT-server/lib/perl/xCAT/xcatd.pm +++ b/xCAT-server/lib/perl/xCAT/xcatd.pm @@ -81,6 +81,9 @@ sub validate { #TODO: more complex matching (lists, wildcards) next unless ($peername and $peername eq $rule->{name}); } + if ($rule->{name} and $rule->{name} eq '*') { #a name is required, but can be any name whatsoever.... + next unless ($peername); + } if ($rule->{time} and $rule->{time} ne '*') { #TODO: time ranges }