diff --git a/xCAT-client/bin/xdsh b/xCAT-client/bin/xdsh index bfeec3e06..3b06659ad 100644 --- a/xCAT-client/bin/xdsh +++ b/xCAT-client/bin/xdsh @@ -188,6 +188,12 @@ if ($ENV{'DSHEXECUTE'}) { push(@{$cmdref->{env}}, "DSHEXECUTE=$ENV{'DSHEXECUTE'}"); } +if ($ENV{'DSH_ENVIRONMENT'}) +{ + push(@{$cmdref->{env}}, "DSH_ENVIRONMENT=$ENV{'DSH_ENVIRONMENT'}"); +} + + xCAT::Client::submit_request($cmdref, \&xCAT::Client::handle_response); exit $xCAT::Client::EXITCODE;