diff --git a/xCAT-server/lib/xcat/plugins/yaboot.pm b/xCAT-server/lib/xcat/plugins/yaboot.pm index fed757bab..8bca4f90b 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -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;