From d922d337a824ee67e3b839cb9e32803b1fbb3444 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 25 Mar 2009 14:33:08 +0000 Subject: [PATCH] Add an error message for missing certain plugin git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 77ae7cb43..c1acc43c9 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -800,6 +800,15 @@ sub plugin_command { close $parfd; $check_fds->add($pfd); } + } else { + my $pm_name = $plugins_dir."/".$modname.".pm"; + foreach my $node (keys %{$handler_hash{$_}}) { + if ($sock) { + print $sock XMLout({node=>[{name=>[$node],data=>["Cannot find the perl module to complete the operation: $pm_name"],errorcode=>[1]}]},NoAttr=>1,RootName=>'xcatresponse'); + } else { + $callback->({node=>[{name=>[$node],data=>["Cannot find the perl module to complete the operation: $pm_name"],errorcode=>[1]}]}); + } + } } } unless ($sock) { return $Main::resps };