From 109e086253e2053fdcb23a6af188539bbc467553 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 25 Jul 2014 09:09:29 -0400 Subject: [PATCH] defect 4235 --- perl-xCAT/xCAT/DSHCLI.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index b0aaa18d5..77ea29259 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -4036,7 +4036,7 @@ sub parse_and_run_dsh { # from sinv, discard this name undef @$nodes; } - if ($nodes) + if (@$nodes[0]) { my $rsp = {}; $rsp->{error}->[0] = @@ -4407,7 +4407,7 @@ sub parse_and_run_dcp xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1); return; } - if ($nodes) + if (@$nodes[0]) { my $rsp = {}; $rsp->{error}->[0] = @@ -4513,7 +4513,7 @@ sub parse_and_run_dcp # # build list of nodes my @nodelist; - if ($nodes) + if (@$nodes[0]) { # there are nodes @nodelist = @$nodes; $options{'nodes'} = join(',', @nodelist);