diff --git a/perl-xCAT/xCAT/NodeRange.pm b/perl-xCAT/xCAT/NodeRange.pm index 64fbf6979..5d47b430c 100644 --- a/perl-xCAT/xCAT/NodeRange.pm +++ b/perl-xCAT/xCAT/NodeRange.pm @@ -51,7 +51,10 @@ sub expandatom { # Try to match groups? my $grptab = xCAT::Table->new('nodegroup'); - my @grplist = @{$grptab->getAllEntries()}; + my @grplist; + if ($grptab) { + @grplist = @{$grptab->getAllEntries()}; + } my $isdynamicgrp = 0; foreach my $grpdef_ref (@grplist) { my %grpdef = %$grpdef_ref;