Changes to fog working in hybrid mode

This commit is contained in:
Ned Wright
2023-03-07 15:02:46 +00:00
parent 6480357fde
commit 61bb2ce4c7
2 changed files with 6 additions and 2 deletions

View File

@@ -1343,6 +1343,10 @@ private:
<< LogField("agentVersion", Version::get());
auto email = getSettingWithDefault<string>("", "email-address");
if (email == "") {
auto env_email = getenv("user_email");
if (env_email != nullptr) email = env_email;
}
if (email != "") {
dbgInfo(D_ORCHESTRATOR) << "Sending registration data";
LogGen(