Commented out: use warnings. It takes care of this error, which you get when running rpower() in bypass mode: Use of uninitialized value in numeric eq (==) at /opt/xcat/lib/perl/xCAT_plugin/zvm.pm line 74.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4537 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2009-11-10 15:36:19 +00:00
parent 183c173975
commit c24a0183dd

View File

@ -18,7 +18,7 @@ use xCAT::Table;
use xCAT::Utils;
use Getopt::Long;
use strict;
use warnings;
# use warnings;
# If this line is not included, you get:
# /opt/xcat/lib/perl/xCAT_plugin/zvm.pm did not return a true value
@ -339,7 +339,7 @@ sub process_request {
# Set the boot state for a noderange
elsif ( $command eq "nodeset" ) {
foreach (@nodes) {
$pid = fork();
$pid = xCAT::Utils->xfork();
# Parent process
if ($pid) {
@ -365,7 +365,7 @@ sub process_request {
# Collects node MAC address
elsif ( $command eq "getmacs" ) {
foreach (@nodes) {
$pid = fork();
$pid = xCAT::Utils->xfork();
# Parent process
if ($pid) {
@ -392,7 +392,7 @@ sub process_request {
foreach (@children) {
waitpid( $_, 0 );
}
return;
}