From 6738d6cabac840309f763c02e592140648913650 Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 18 Jun 2013 08:06:28 +0000 Subject: [PATCH] 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 --- xCAT-client/bin/genimage | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-client/bin/genimage b/xCAT-client/bin/genimage index f64844a81..a3c48af57 100755 --- a/xCAT-client/bin/genimage +++ b/xCAT-client/bin/genimage @@ -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 ''){