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/trunk@12332 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-04-24 18:31:02 +00:00
parent 4731bf5d4b
commit 67505c4c3b
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

@ -3695,6 +3695,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) {