diff --git a/xCAT-server/lib/xcat/plugins/ivm.pm b/xCAT-server/lib/xcat/plugins/ivm.pm index 34e50e6a7..77628b706 100644 --- a/xCAT-server/lib/xcat/plugins/ivm.pm +++ b/xCAT-server/lib/xcat/plugins/ivm.pm @@ -164,7 +164,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 ivm"]; $rsp->{node}->[0]->{errorcode}=[1];