defined(@array) is deprecated

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14500 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-11-30 09:09:29 +00:00
parent 696ba151a5
commit b52d6704c7

View File

@ -160,7 +160,7 @@ sub gethmccon {
$host = $att->{hcp};
}
my @cred = xCAT::PPCdb::credentials( $host, $hwtype );
if ( !defined(@cred) )
if ( !(@cred) )
{
$rsp->{node}->[0]->{error}=["Can't username and passwd for the hmc"];
$rsp->{node}->[0]->{errorcode}=[1];