defect 2948337: use getInstallDir to get install dir

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5272 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2010-02-24 08:06:42 +00:00
parent 97fe9a3e8a
commit 3231d29244

View File

@ -22,16 +22,11 @@ sub handled_commands {
}
sub process_request {
my $sitetab = xCAT::Table->new('site');
my $request = shift;
my $callback = shift;
my $doreq = shift;
my $ent = $sitetab->getAttribs({key=>'installdir'},['value']);
my $installroot = "/install";
my $installroot = xCAT::Utils->getInstallDir();
if ($ent and $ent->{value}) {
$installroot = $ent->{value};
}
@ARGV = @{$request->{arg}};
my $argc = scalar @ARGV;
if ($argc == 0) {