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@12856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
086ddbb9b3
commit
db3ccd170f
@ -258,9 +258,11 @@ sub docfheaders {
|
||||
#-- then start all consoles on demand
|
||||
#-- this helps eliminate many ssh connections to blade AMM
|
||||
#-- which seems to kill AMMs occasionally
|
||||
my $sitetab = xCAT::Table->new('site');
|
||||
my $vcon = $sitetab->getAttribs({key => "consoleondemand"}, 'value');
|
||||
if ($vcon and $vcon->{"value"} and $vcon->{"value"} eq "yes" ) {
|
||||
#my $sitetab = xCAT::Table->new('site');
|
||||
#my $vcon = $sitetab->getAttribs({key => "consoleondemand"}, 'value');
|
||||
my @entries = xCAT::Utils->get_site_attribute("consoleondemand");
|
||||
my $site_entry = $entries[0];
|
||||
if ( defined($site_entry) and $site_entry eq "yes" ) {
|
||||
push @newheaders," options ondemand;\n";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user