Table.pm would die unceremoniously when faced with undefined argument, tolerate it

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12333 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-04-24 18:32:59 +00:00
parent abc58b4129
commit 8957491f43
2 changed files with 2 additions and 0 deletions

View File

@ -2044,6 +2044,7 @@ sub getNodesAttribs {
return dbc_call($self,'getNodesAttribs',@_);
}
my $nodelist = shift;
unless ($nodelist) { $nodelist = []; } #common to be invoked with undef seemingly
my %options=();
my @attribs;
if (ref $_[0]) {

View File

@ -3693,6 +3693,7 @@ sub filter_nodes{
sub build_more_info{
my $noderange=shift;
my $callback=shift;
unless ($noderange) { return []; }
my $mptab = xCAT::Table->new("mp");
my @moreinfo=();
unless ($mptab) {