From 25553e49c735d3c92423da9658d3e93eca36e4c0 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 24 Feb 2010 07:58:08 +0000 Subject: [PATCH] defect 2948368: use getTftpDir to get tftp dir git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index 4145f7589..0ecbe95c9 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -922,12 +922,7 @@ sub setup_TFTP } $stab->close; # read tftpdir directory from database - $tftpdir = "/tftpboot"; # default - my @tftpdir1 = xCAT::Utils->get_site_attribute("tftpdir"); - if (defined($tftpdir1[0])) - { - $tftpdir = $tftpdir1[0]; - } + $tftpdir = xCAT::Utils->getTftpDir(); if (!(-e $tftpdir)) { mkdir($tftpdir);