mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-12 00:00:12 +00:00
get tftpdir using xCAT::Utils->getTftpDir if it is not passed in through subroutine calling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11673 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -45,6 +45,10 @@ sub check_dhcp {
|
||||
sub getstate {
|
||||
my $node = shift;
|
||||
my $tftpdir = shift;
|
||||
if (!$tftpdir)
|
||||
{
|
||||
$tftpdir = xCAT::Utils->getTftpDir();
|
||||
}
|
||||
if (check_dhcp($node)) {
|
||||
if (-r $tftpdir . "/etc/".$node) {
|
||||
my $fhand;
|
||||
|
Reference in New Issue
Block a user