-Revert Table write/retrieval at nodeset time

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2152 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-09-12 13:54:14 +00:00
parent 09c9b1110f
commit 2f3ab2c6c2
2 changed files with 0 additions and 35 deletions

View File

@ -296,23 +296,6 @@ sub mknetboot
}
}
}
# Has to be tested...
#
# Try to insert special idiom {xcatmaster} to bootparams table if the above
# value resolves to the same value as {xcatmaster}.
# This allows avoiding xcatmaster hostname where possible, thus allowing
# to keep database very clean and minimize needed changes in db
# when moving xcat to another node.
#-- test whether special construction '{xcatmater}' is supported in Table.pm
$sitetab->setAttribs( {'key' => 'testkey'}, {'value' => '{xcatmaster}'} );
my $testvalue = $sitetab->getAttribs({key => "testkey"}, 'value');
#-- now "testkey" will _NOT_ contain '{xcatmaster}' if special substitutions are supported
if ( $testvalue->{"value"} eq $imgsrv ) { #-- xCAT supports interpolation of '{xcatmaster}'
$imgsrv = '{xcatmaster}';
}
$sitetab->delEntries( {'key' => 'testkey'} ); #-- clean up
unless ($imgsrv)
{
$callback->(

View File

@ -167,24 +167,6 @@ sub mknetboot
}
}
}
# Has to be tested...
#
# Try to insert special idiom {xcatmaster} to bootparams table if the above
# value resolves to the same value as {xcatmaster}.
# This allows avoiding xcatmaster hostname where possible, thus allowing
# to keep database very clean and minimize needed changes in db
# when moving xcat to another node.
#-- test whether special construction '{xcatmater}' is supported in Table.pm
$sitetab->setAttribs( {'key' => 'testkey'}, {'value' => '{xcatmaster}'} );
my $testvalue = $sitetab->getAttribs({key => "testkey"}, 'value');
#-- now "testkey" will _NOT_ contain '{xcatmaster}' if special substitutions are supported
if ( $testvalue->{"value"} eq $imgsrv ) { #-- xCAT supports interpolation of '{xcatmaster}'
$imgsrv = '{xcatmaster}';
}
$sitetab->delEntries( {'key' => 'testkey'} ); #-- clean up
unless ($imgsrv)
{
$callback->(