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);