fix for bug 3286305: print warning message when no boject is provided

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9813 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2011-06-16 00:50:26 +00:00
parent d8bcedffa8
commit 1ce7d0080f

View File

@ -798,6 +798,10 @@ sub processArgs
# must have object name(s) -
if ((scalar(@::clobjnames) == 0) && (scalar(@::fileobjnames) == 0))
{
my $rsp;
$rsp->{data}->[0] =
"No object names were provided.";
xCAT::MsgUtils->message("E", $rsp, $::callback);
return 3;
}