From 46ebf770e15c1308bed9bfcb3742b0ee3ded3674 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 17 Jan 2011 19:23:04 +0000 Subject: [PATCH] add msg to rmdsklsnode for missing noderange git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8684 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 31674274c..ec52e3e0d 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -9515,6 +9515,15 @@ sub prermdsklsnode last; } } + + if (scalar(@nodelist) == 0) { + my $rsp; + push @{$rsp->{data}}, "A noderange is required.\n"; + xCAT::MsgUtils->message("E", $rsp, $callback); + &rmdsklsnode_usage($callback); + return 2; + } + return (0, \@nodelist, $type); }