bug2830 - use xCAT::TableUtils->get_site_attribute("installdir") instead of gettab.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
30c92ba536
commit
6738d6caba
@ -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 ''){
|
||||
|
Loading…
x
Reference in New Issue
Block a user