fix xdsh/xdcp to MN broken, forgot to change logic when we change to __mgmtnode

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14083 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-10-22 19:07:53 +00:00
parent 0304f09112
commit 3239a455be

View File

@ -3052,9 +3052,7 @@ sub bld_resolve_nodes_hash
# find out if we have an MN in the list, local cp and sh will be used
# not remote shell
my $tab = xCAT::Table->new('nodetype');
my $type = $tab->getNodesAttribs(\@target_list,['nodetype']);
my $mname = xCAT::Utils->noderangecontainsMn(@target_list);
foreach my $target (@target_list)
{
@ -3063,9 +3061,11 @@ sub bld_resolve_nodes_hash
my $localhost;
my $user;
my $context = "XCAT";
my $nodetype=$type->{$target}->[0]->{nodetype};
if ($type->{$target}->[0]->{nodetype} eq "mn") {
$localhost=$target;
# check to see if this node is the Management Node
if ($mname) {
if ($mname eq $target) {
$localhost=$target;
}
}
my %properties = (
'hostname' => $hostname,