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
This commit is contained in:
linggao 2009-09-14 17:17:32 +00:00
parent 8d7d768230
commit 2ce4dff3b6

View File

@ -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});