-Fix defect where error checking code failed to handle pseudo-global commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b257c6a840
commit
f3096a15d2
@ -963,12 +963,20 @@ sub plugin_command {
|
||||
}
|
||||
} 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]}]});
|
||||
}
|
||||
if (ref $handler_hash{$_}) {
|
||||
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]}]});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($sock) {
|
||||
print $sock XMLout({data=>["Cannot find the perl module to complete the operation: $pm_name"],errorcode=>[1]},NoAttr=>1,RootName=>'xcatresponse');
|
||||
} else {
|
||||
$callback->({data=>["Cannot find the perl module to complete the operation: $pm_name"],errorcode=>[1]});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user