fix for bug 3074052: only pass the DSH_* and XCAT* ENV to xcatd

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7689 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2010-09-28 02:35:12 +00:00
parent c227fc75ec
commit 67ed14f18c

View File

@ -139,7 +139,9 @@ if ($::SECURITY) {
}
foreach (keys %ENV) {
push @{$cmdref->{environment}}, "$_=$ENV{$_}";
if (/^DSH_/ || /^XCAT/) {
push @{$cmdref->{environment}}, "$_=$ENV{$_}";
}
}
xCAT::Client::submit_request($cmdref,\&xCAT::Client::handle_response);