From 5ffb067e5e4745912cffd51d05e5e55a1e6118f5 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 24 Jul 2014 11:05:45 -0400 Subject: [PATCH] defect 4235 --- perl-xCAT/xCAT/DSHCLI.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index 0474528ba..b0aaa18d5 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -4407,6 +4407,14 @@ sub parse_and_run_dcp xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1); return; } + if ($nodes) + { + my $rsp = {}; + $rsp->{error}->[0] = + "Input noderange:@$nodes and any other xdsh flags or environment variables are not valid with -i flag."; + xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1); + return; + } } if ((!(defined($nodes))) && (!(defined($options{'rootimg'})))) { # no nodes and not -i option, error