From bed6c2c54147246358f92c1613a0c427e7177e1b Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 23 Sep 2009 11:43:11 +0000 Subject: [PATCH] fix -P option, i broke with addition of xdcp hierarchy support git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4207 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xdsh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-client/bin/xdsh b/xCAT-client/bin/xdsh index 132192178..91c418882 100644 --- a/xCAT-client/bin/xdsh +++ b/xCAT-client/bin/xdsh @@ -182,6 +182,10 @@ if ($ENV{'RSYNCSNONLY'}) { push(@{$cmdref->{env}}, "RSYNCSNONLY=$ENV{'RSYNCSNONLY'}"); } +if ($ENV{'DCP_PULL'}) +{ + push(@{$cmdref->{env}}, "DCP_PULL=$ENV{'DCP_PULL'}"); +} xCAT::Client::submit_request($cmdref, \&xCAT::Client::handle_response); exit $xCAT::Client::EXITCODE; @@ -463,6 +467,12 @@ sub parse_args_xdcp $ENV{'RSYNCSNONLY'} = "yes"; # rsync file to SN } + # if Pull function hierarchy must be handled special in plugin + if ($options{'pull'}) + { + $ENV{'DCP_PULL'} = "yes"; + } + # if rsyncing to a node, not the root image # then must sync to service node first, if using hierarchy # These env variable are used in xdsh.pm preprocessing