-
Notifications
You must be signed in to change notification settings - Fork 521
fix confusing error message #1479
Conversation
| automationAgentLogOptions = " -logFile ${AGENT_LOG_FILE} -maxLogFileDurationHrs ${AGENT_MAX_LOG_FILE_DURATION_HOURS} -logLevel ${AGENT_LOG_LEVEL}" | ||
|
|
||
| MongodbUserCommand = `current_uid=$(id -u) | ||
| declare -r current_uid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could merge with below var, but this seems easy enough once we need to do one change in the future
| func AutomationAgentCommand() []string { | ||
| // AutomationAgentCommand withAgentAPIKeyExport detects whether we want to deploy this agent with the agent api key exported | ||
| // it can be used to register the agent with OM. | ||
| func AutomationAgentCommand(withAgentAPIKeyExport bool) []string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method is used in meko as a base to create the agent command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lsierant
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment to consider, but in any way LGTM
| ` | ||
| MongodbUserCommandWithAPIKeyExport = `current_uid=$(id -u) | ||
| AGENT_API_KEY="$(cat /mongodb-automation/agent-api-key/agentApiKey)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might do this also by swallowing stderr to /dev/null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All Submissions:
closes #XXXXin your comment to auto-close the issue that your PR fixes (if such).removing error message in case that file does not exist. We do want to use it in case it exist, with this we have the opportunity to connect to OM via monitoring.