Don't crash if init_agent() fails.

This commit is contained in:
Daniel Nichter
2013-09-18 18:50:56 -07:00
parent cad211426c
commit 77bd4f9edc

View File

@@ -5814,7 +5814,13 @@ sub init_agent {
}
}
if ( $agent && $success ) {
$logger->info("Agent " . $agent->name . " (" . $agent->uuid . ") is ready");
}
else {
$logger->warning("Failed to initialize the agent. The API may be down. Please try again.");
}
return $agent, $success;
}