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
This commit is contained in:
lissav 2009-09-23 11:43:11 +00:00
parent 25037e7c4e
commit bed6c2c541

View File

@ -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