diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 4dbce91ba..b620afc9d 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -283,6 +283,13 @@ sub processArgs { @::noderange = &noderange($a, 0); # mkdef could not spport regular expression } + if (scalar(@::noderange) == 0) + { + my $rsp; + $rsp->{data}->[0] = "No node in \'$a\', check the noderange syntax."; + xCAT::MsgUtils->message("E", $rsp, $::callback); + return 1; + } } }