From f06b7dbbc5d961d82e4c07cc4efa7561924f2be6 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Thu, 9 Aug 2012 04:10:24 +0000 Subject: [PATCH] for item: clean up Utils.pm, the code in xCAT-UI/xcat/plugins/ git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13468 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/xcat/plugins/web.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-UI/xcat/plugins/web.pm b/xCAT-UI/xcat/plugins/web.pm index 1b73f4bfb..bedf7161c 100644 --- a/xCAT-UI/xcat/plugins/web.pm +++ b/xCAT-UI/xcat/plugins/web.pm @@ -20,6 +20,7 @@ use Data::Dumper; use LWP::Simple; use xCAT::Table; use xCAT::NodeRange; +use xCAT::TableUtils; require XML::Parser; sub handled_commands { @@ -1265,7 +1266,7 @@ sub web_createimage { my $imagetype = lc( $request->{arg}->[5] ); my @softArray; my $netdriver = ''; - my $installdir = xCAT::Utils->getInstallDir(); + my $installdir = xCAT::TableUtils->getInstallDir(); my $tempos = $ostype; $tempos =~ s/[0-9\.]//g; my $CONFILE; @@ -1666,7 +1667,7 @@ sub web_provision { my $line = ''; my %imageattr; my $retinfo = xCAT::Utils->runcmd( "lsdef -t osimage -l $imageName", -1, 1 ); - my $installdir = xCAT::Utils->getInstallDir(); + my $installdir = xCAT::TableUtils->getInstallDir(); # Parse output, get the OS name and type foreach $line (@$retinfo) {