mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-25 12:40:21 +00:00
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
This commit is contained in:
@@ -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 };
|
||||
|
Reference in New Issue
Block a user