-Fix typo in previous checking

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@764 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-03-11 20:39:28 +00:00
parent f51ca380b5
commit 73e555fa0c

View File

@ -7,7 +7,7 @@ BEGIN
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
use lib "$::XCATROOT/lib/perl";
use xCAT::Table;
use xCAT::Util;
use xCAT::Utils;
my $dba;
my $ipmitab = xCAT::Table->new('ipmi');
unless ($ipmitab) { sleep 5; die "Unable to open IPMI table"; }
@ -30,7 +30,7 @@ if ($dba) {
if ($dba->{username}) { $username = $dba->{username}; }
if ($dba->{password}) { $password = $dba->{password}; }
}
xCAT::Util::close_all_dbhs;
xCAT::Utils::close_all_dbhs;
system "ipmitool -I lanplus -U $username -P $password -H $bmc sol deactivate"; #Stop any active session
exec "ipmitool -I lanplus -U $username -P $password -H $bmc sol activate";