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