diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 142487174..4434c565e 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -3328,7 +3328,7 @@ sub get_ServiceNode } else { - if ($oshash->{$node}->[0]->{os} eq "AIX") { + if ( ($oshash->{$node}->[0]->{os}) && ($oshash->{$node}->[0]->{os} eq "AIX")) { push @{$snhash{$nimprime}}, $node; } else { push @{$snhash{$master}}, $node;