Have SvrUtils potentiall prefetchcache

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12638 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-05-11 15:31:09 +00:00
parent f35700c82e
commit eff23d4a3e

View File

@ -152,13 +152,17 @@ sub get_nodeset_state
{
$node = shift;
}
my %options=@_;
my %gnopts;
if ($options{prefetchcache}) { $gnopts{prefetchcache}=1; }
my $state = "undefined";
my $tftpdir;
#get boot type (pxe, yaboot or aixinstall) for the node
my $noderestab = xCAT::Table->new('noderes', -create => 0);
my $ent = $noderestab->getNodeAttribs($node, [qw(netboot tftpdir)]);
my $ent = $noderestab->getNodeAttribs($node, [qw(netboot tftpdir)],%gnopts);
#get tftpdir from the noderes table, if not defined get it from site talbe
if ($ent && $ent->{tftpdir}) {
@ -212,7 +216,7 @@ sub get_nodeset_state
if ($state eq "undefined")
{
my $chaintab = xCAT::Table->new('chain');
my $stref = $chaintab->getNodeAttribs($node, ['currstate']);
my $stref = $chaintab->getNodeAttribs($node, ['currstate'],%gnopts);
if ($stref and $stref->{currstate}) { $state = $stref->{currstate}; }
}