You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The DIM DNS node to set the env var if not already set");
55
56
}
56
57
57
58
virtualvoidrun(const po::variables_map&) override
@@ -71,22 +72,12 @@ class ProgramAlf : public AliceO2::Common::Program
71
72
BOOST_THROW_EXCEPTION(AlfException() << ErrorInfo::Message("DIM_DNS_NODE env variable not set, and no relevant argument provided.")); // InfoLogger and errors?
72
73
}
73
74
74
-
int alfId;
75
-
76
-
if (constchar* alfIdString = std::getenv("ALF_ID")) {
77
-
getLogger() << "Setting ALF_ID from argument." << endm;
78
-
alfId = mOptions.alfId;
79
-
getLogger() << "ALF_ID=" << alfId << endm;
80
-
} else {
81
-
getLogger() << "Picked up ALF_ID from the environment." << endm;
BOOST_THROW_EXCEPTION(AlfException() << ErrorInfo::Message("DIM_DNS_NODE env variable not set, and no relevant argument provided.")); // InfoLogger and errors?
90
78
}
91
79
92
-
getLogger() << "Starting the DIM Client using ALF ID=" << mOptions.alfId << ", serial=" << mOptions.serial << " and link=" << mOptions.link << endm;
80
+
std::string alfId = ip::host_name();
81
+
boost::to_upper(alfId);
82
+
83
+
getLogger() << "Starting the DIM Client using ALF ID=" << alfId << ", serial=" << mOptions.serial << " and link=" << mOptions.link << endm;
93
84
94
-
AlfLink link = AlfLink{ mOptions.alfId, mOptions.serial, mOptions.link, nullptr };
85
+
AlfLink link = AlfLink{ alfId, mOptions.serial, mOptions.link, nullptr };
0 commit comments