From 2ce4dff3b69f1dae5a461805c5ecaa116e35d3f9 Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 14 Sep 2009 17:17:32 +0000 Subject: [PATCH] changed xcatd to use Table.getAllEntries instead of Table.getTable for getting the contents of the policy table. The old way did not honor the diabled column git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4129 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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});