Skip to content

Commit

Permalink
fix: don't force-resolve config after agent startup
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Dec 5, 2023
1 parent f2f6241 commit 3f69e07
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/cleanup/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cleanup/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,7 @@ async function setupAgentIfNeeded(
}
}
if (!installFailed && !startFailed) {
const cfg = await agentConfig()
if (!cfg) {
console.warn(
`Agent started at PID ${pid}, but config failed to resolve. Caching may not work.`
)
} else {
core.info(`Agent installed and started at PID: ${pid}.`)
}
core.info(`Agent installed and started at PID: ${pid}.`)
agentEnabled = true
agentManaged = true
}
Expand Down

0 comments on commit 3f69e07

Please sign in to comment.