From b9811ba81086af9b5377313943fc6a07b50ea56a Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Thu, 9 Aug 2012 04:03:01 +0000 Subject: [PATCH] for item: clean up Utils.pm, the code in xCAT-server/lib/xcat/dsh/Context/ git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13465 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/dsh/Context/XCAT.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/dsh/Context/XCAT.pm b/xCAT-server/lib/xcat/dsh/Context/XCAT.pm index a49c7e004..ecdc78243 100644 --- a/xCAT-server/lib/xcat/dsh/Context/XCAT.pm +++ b/xCAT-server/lib/xcat/dsh/Context/XCAT.pm @@ -7,6 +7,7 @@ use strict; use Socket; use xCAT::Utils; use xCAT::MsgUtils; +use xCAT::TableUtils; # Define remote shell globals from xCAT our $XCAT_RSH_CMD; @@ -321,7 +322,7 @@ sub get_xcat_remote_cmds { # override with site table settings, if they exist my $ssh_setup = 0; - my @useSSH = xCAT::Utils->get_site_attribute("useSSHonAIX"); + my @useSSH = xCAT::TableUtils->get_site_attribute("useSSHonAIX"); if (defined($useSSH[0])) { $useSSH[0] =~ tr/a-z/A-Z/; # convert to upper if (($useSSH[0] eq "1") || ($useSSH[0] eq "YES")) @@ -413,7 +414,7 @@ sub get_xcat_node_list sub get_xcat_nodegroup_table { my $node_list = ""; - my @nodegroups = xCAT::Utils->list_all_node_groups; + my @nodegroups = xCAT::TableUtils->list_all_node_groups; for my $group (@nodegroups) { chomp($group);