From 61effa015cd662f9c0bbebfdf19766670c8962ff Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 29 Aug 2012 14:49:36 +0000 Subject: [PATCH] add support for ENV variable input git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13636 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xdsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-client/bin/xdsh b/xCAT-client/bin/xdsh index f832f34cf..8a5fe7f2a 100644 --- a/xCAT-client/bin/xdsh +++ b/xCAT-client/bin/xdsh @@ -189,6 +189,10 @@ 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;