diff --git a/xCAT-server/lib/xcat/plugins/pxe.pm b/xCAT-server/lib/xcat/plugins/pxe.pm index 53156346e..280bc1c41 100644 --- a/xCAT-server/lib/xcat/plugins/pxe.pm +++ b/xCAT-server/lib/xcat/plugins/pxe.pm @@ -42,7 +42,7 @@ sub check_dhcp { } sub _slow_get_tftpdir { #make up for paths where tftpdir is not passed in - my $node=shift; + my $node = shift; my $nrtab = xCAT::Table->new('noderes',-create=>0); #in order to detect per-node tftp directories unless ($nrtab) { return $globaltftpdir; } my $ent = $nrtab->getNodeAttribs($node,["tftpdir"]); @@ -634,7 +634,7 @@ sub getNodesetStates { } else { $tftpdir = $globaltftpdir; } - my $tmp=getstate($node); + my $tmp=getstate($node, $tftpdir); my @a=split(' ', $tmp); $stat = $a[0]; if (exists($hashref->{$stat})) { diff --git a/xCAT-server/lib/xcat/plugins/yaboot.pm b/xCAT-server/lib/xcat/plugins/yaboot.pm index 21155cb7f..1a5aba26e 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -607,7 +607,7 @@ sub getNodesetStates { } else { $tftpdir = $globaltftpdir; } - my $tmp=getstate($node); + my $tmp=getstate($node, $tftpdir); my @a=split(' ', $tmp); $stat = $a[0]; if (exists($hashref->{$stat})) {