minor fix

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2974 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-03-24 23:56:42 +00:00
parent 5353d11620
commit 0e6d28e1c2
6 changed files with 6 additions and 6 deletions

View File

@ -130,7 +130,7 @@ sub process_command {
my $global_check=1;
if ($sitetab) {
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
if ($ref and $ref->{value}) {
if ($ref) {
if ($ref->{value} =~ /0|n|N/) { $global_check=0; }
}
}

View File

@ -2830,7 +2830,7 @@ sub dompa {
my $sitetab = xCAT::Table->new('site');
if ($sitetab) {
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
if ($ref and $ref->{value}) {
if ($ref) {
if ($ref->{value} =~ /0|N|n/) { $global_check=0; }
}
}

View File

@ -29,7 +29,7 @@ my $nonodestatus=0;
my $sitetab = xCAT::Table->new('site');
if ($sitetab) {
(my $ref1) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
if ($ref1 and $ref1->{value}) {
if ($ref1) {
if ($ref1->{value} =~ /0|n|N/) { $nonodestatus=1; }
}
}

View File

@ -6136,7 +6136,7 @@ sub process_request {
my $global_check=1;
if ($sitetab) {
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
if ($ref and $ref->{value}) {
if ($ref) {
if ($ref->{value} =~ /0|n|N/) { $global_check=0; }
}
}

View File

@ -897,7 +897,7 @@ sub process_request {
my $global_check=1;
if ($sitetab) {
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
if ($ref and $ref->{value}) {
if ($ref) {
if ($ref->{value} =~ /0|n|N/) { $global_check=0; }
}
}

View File

@ -758,7 +758,7 @@ sub process_request {
my $sitetab = xCAT::Table->new('site');
if ($sitetab) {
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
if ($ref and $ref->{value}) {
if ($ref) {
if ($ref->{value} =~ /0|n|N/) { $global_check=0; }
}
}