diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index cd1a11ca1..56b618508 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1508,10 +1508,10 @@ sub validate { xCAT::MsgUtils->message("S","Unable to open policy data, denying"); return 0; } - my @policies = $policytable->getTable; + my $policies = $policytable->getAllEntries; $policytable->close; my $rule; - RULE: foreach $rule (@policies) { + RULE: foreach $rule (@$policies) { if ($rule->{name} and $rule->{name} ne '*') { #TODO: more complex matching (lists, wildcards) next unless ($peername and $peername eq $rule->{name});