Skip to content

Commit

Permalink
[o2-alf-client] Set the DIM_DNS_NODE env var if not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
kostorr committed Sep 2, 2019
1 parent cb951cb commit c0bf4dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/ProgramAlfClient.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ class ProgramAlfClient : public AliceO2::Common::Program
getLogger() << "ALF client initializations..." << endm;

if (mOptions.dimDnsNode != "") {
getLogger() << "DIM_DNS_NODE env variable not set. Setting it from argument." << endm;
getLogger() << "Setting DIM_DNS_NODE from argument." << endm;
getLogger() << "DIM_DNS_NODE=" << mOptions.dimDnsNode << endm;
setenv("DIM_DNS_NODE", mOptions.dimDnsNode.c_str(), true);
} else if (const char* dimDnsNode = std::getenv("DIM_DNS_NODE")) {
getLogger() << "Picked up DIM_DMS_NODE from the environment." << endm;
getLogger() << "DIM_DNS_NODE=" << dimDnsNode << endm;
Expand Down

0 comments on commit c0bf4dd

Please sign in to comment.