mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-19 17:50:20 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user