From 98f393d24b7f53c87f1a3c43adaa99fc3dfaeeb4 Mon Sep 17 00:00:00 2001 From: ligc Date: Fri, 24 Feb 2012 06:55:58 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/yaboot.pm | 4 ++++ 1 file changed, 4 insertions(+) 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;