defined(%hash) and defined(@array) are deprecated

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14497 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-11-30 09:06:20 +00:00
parent da5ab569e6
commit d60b6b955a

View File

@ -785,7 +785,7 @@ sub preprocess_nodes {
##########################################
if ( $request->{command} eq "rnetboot" || $request->{command} eq "rbootseq" ) {
$netwk = resolve_netwk( $request, $noderange );
if ( !defined( %$netwk )) {
if ( !( %$netwk )) {
return undef;
}
}
@ -1421,7 +1421,7 @@ sub handle_find_hw_children {
return undef;
}
my @nodearray = $vpdtab->getAttribs({serial=>$mtms->{serial}, mtm=>$mtms->{mtm}}, qw(node side)); # need regx
if (!defined(@nodearray)) {
if (!(@nodearray)) {
return undef;
}
my @tempnodes;