From 1ce7d0080f482cc4db31dde7a243b86f82a39753 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 16 Jun 2011 00:50:26 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 24b42a17a..d1b762be4 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -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; }