From 9bff78a0b788d984cd287ed3feaf53af1a40800d Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 6 Jul 2009 18:58:47 +0000 Subject: [PATCH] fix hierarchical xdsh broke with fix for combination of nodes and servicenodes on xdcp -F call git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3709 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xdsh.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index fa9ef01b2..10e5b9234 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -174,8 +174,13 @@ sub preprocess_request push @requests, $reqcopy; } else - { # non hierarchy , just push the original command - push @requests, $reqcopy; + { # non hierarchy , build for Management node + my $reqcopy = {%$req}; + $reqcopy->{node} = $sn->{$snkey}; + $reqcopy->{'_xcatdest'} = $snkey; + $reqcopy->{_xcatpreprocessed}->[0] = 1; + push @requests, $reqcopy; + } }