defined(%hash) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c82f125bf3
commit
f1333718f9
@ -3078,7 +3078,7 @@ sub mknimimage
|
||||
|
||||
# get the osimage def for the -i option osimage
|
||||
%::imagedef = xCAT::DBobjUtils->getobjdefs(\%objtype, $callback);
|
||||
if (!defined(%::imagedef))
|
||||
if (!(%::imagedef))
|
||||
{
|
||||
my $rsp;
|
||||
push @{$rsp->{data}}, "Could not get xCAT image definition.\n";
|
||||
@ -3601,7 +3601,7 @@ sub mknimimage
|
||||
#
|
||||
# overwrite with anything provided on the command line
|
||||
#
|
||||
if (defined(%::attrres))
|
||||
if (%::attrres)
|
||||
{
|
||||
# add overlay/any additional from the cmd line if provided
|
||||
foreach my $type (keys %::attrres)
|
||||
|
Loading…
Reference in New Issue
Block a user