diff --git a/perl-xCAT/xCAT/Common.pm b/perl-xCAT/xCAT/Common.pm index 3844243fd..ec14c8d1e 100644 --- a/perl-xCAT/xCAT/Common.pm +++ b/perl-xCAT/xCAT/Common.pm @@ -124,7 +124,7 @@ sub usage_noderange { if (!$noderange) { $usage_string="Missing Noderange\n"; $usage_string .=xCAT::Usage->getUsage($command); - $callback->({data=>$usage_string}); + $callback->({error=>[$usage_string],errorcode=>[1]}); $request = {}; return; } diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 28dfe6507..0335d2780 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -1950,7 +1950,7 @@ sub preprocess_request { if (!$noderange) { $usage_string="Missing Noderange\n"; $usage_string .=xCAT::Usage->getUsage($command); - $callback->({data=>$usage_string}); + $callback->({error=>[$usage_string],errorcode=>[1]}); $request = {}; return; }