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:
parent
ebf7ea4be4
commit
6abbe5c74b
@ -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…
Reference in New Issue
Block a user