Closed redanthrax closed 2 years ago
this won't work, a new agent install will crash before it gets to the install function because the config won't exist during fresh install. This is why I intentionally did not make that function return an error. It would require more rework to account for new installs and also any other function that occurs after this line which some of those are used for debugging and don't necessarily require the agent to be installed or have a config.
If NewAgentConfig had an error an empty agent config would be returned and the agent would continue. Added error handling for the instance an empty config was returned and logged the error.