bug2830 - use xCAT::TableUtils->get_site_attribute("installdir") instead of gettab.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16658 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2013-06-18 08:08:03 +00:00
parent ebf7ea4be4
commit 6abbe5c74b

View File

@ -15,6 +15,7 @@ require xCAT::DSHCLI;
require xCAT::Client;
use xCAT::Utils;
use xCAT::TableUtils;
use File::Basename;
$::XCATROOT = "/opt/xcat";
@ -155,7 +156,8 @@ if ((!$imagename) && (!$profile) && (!$os) && (!$arch)) {
# get the install directory
my $installdir = `gettab key=installdir site.value`;
my @entries = xCAT::TableUtils->get_site_attribute("installdir");
my $installdir = $entries[0];
chomp($installdir);
# lots of error checking to make sure it exists.
if($installdir eq ''){