For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12855 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e596348dc7
commit
086ddbb9b3
@ -43,12 +43,13 @@ sub preprocess_request
|
||||
return [$req];
|
||||
}
|
||||
|
||||
my $stab = xCAT::Table->new('site');
|
||||
my $sent;
|
||||
($sent) = $stab->getAttribs({key => 'sharedtftp'}, 'value');
|
||||
unless ( $sent
|
||||
and defined($sent->{value})
|
||||
and ($sent->{value} =~ /no/i or $sent->{value} =~ /0/))
|
||||
#my $stab = xCAT::Table->new('site');
|
||||
#my $sent;
|
||||
#($sent) = $stab->getAttribs({key => 'sharedtftp'}, 'value');
|
||||
my @entries = xCAT::Utils->get_site_attribute("sharedtftp");
|
||||
my $site_entry = $entries[0];
|
||||
unless ( defined($site_entry)
|
||||
and ( $site_entry =~ /no/i or $site_entry =~ /0/))
|
||||
{
|
||||
|
||||
#unless requesting no sharedtftp, don't make hierarchical call
|
||||
|
Loading…
Reference in New Issue
Block a user