defect 3111514: fixed some minor syntax problems

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8480 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2010-12-20 10:03:58 +00:00
parent a86e141d8c
commit f9c0de1b52
3 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ sub donets
}
%nethash = xCAT::DBobjUtils->getobjdefs(\%objtype, $callback);
if (!defined(%nethash)) {
if (!%nethash) {
my $rsp;
$rsp->{data}->[0] = "Could not get xCAT network definitions.\n";
xCAT::MsgUtils->message("E", $rsp, $::callback);

View File

@ -180,7 +180,7 @@ sub process_makeroutes {
my $routestab=xCAT::Table->new("routes", -create =>1);
if ($routestab) {
my @tmp1=$routestab->getAllAttribs(('routename', 'net', 'mask', 'gateway', 'ifname'));
if (defined(@tmp1) && (@tmp1 > 0)) {
if (@tmp1 > 0) {
foreach(@tmp1) {
$all_routes{$_->{routename}} = $_;
$_->{process} = 0;

View File

@ -691,7 +691,7 @@ sub x2n
# get all the attrs for these definitions
%::objhash = xCAT::DBobjUtils->getobjdefs(\%::objtype);
if (!defined(%::objhash))
if (!%::objhash)
{
my $rsp;
$rsp->{data}->[0] = "Could not get xCAT object definitions.\n";