diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 7822d4bd0..d2083afde 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -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; } } } diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 8f26993e9..45de93629 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -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; } } } diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index fa0205cb4..ac5d14286 100644 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -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; } } } diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 8fb26ede2..2ac2722d2 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -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; } } } diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 58f9c8027..13008d8b7 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -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; } } } diff --git a/xCAT-server/lib/xcat/plugins/xen.pm b/xCAT-server/lib/xcat/plugins/xen.pm index da301a130..db32b8a27 100644 --- a/xCAT-server/lib/xcat/plugins/xen.pm +++ b/xCAT-server/lib/xcat/plugins/xen.pm @@ -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; } } }