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:
xq2005 2012-11-30 09:00:29 +00:00
parent c82f125bf3
commit f1333718f9

View File

@ -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)