Skip to content

Commit

Permalink
Update lib/srv/server/installer/autodiscover.go
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinFrazar authored and github-actions committed Jul 30, 2024
1 parent 6be338f commit 197b77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/srv/server/installer/autodiscover.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (ani *AutoDiscoverNodeInstaller) configureTeleportNode(ctx context.Context,
// However, for the last scenario (teleport was manually installed), this flow must not replace the currently running teleport service configuration.
// To prevent this, this flow checks for the existence of the discover notice file, and only allows replacement if it does exist.
if _, err := os.Stat(discoverNoticeFile); err != nil {
ani.Logger.InfoContext(ctx, "Refusing to replace the existing teleport configuration. For the script to replace the existing configuration remove the Teleport configuration.).",
ani.Logger.InfoContext(ctx, "Refusing to replace the existing teleport configuration. For the script to replace the existing configuration remove the Teleport configuration.",
"teleport_configuration", teleportYamlConfigurationPath,
"discover_notice_file", discoverNoticeFile)
return trace.BadParameter("missing discover notice file")
Expand Down

0 comments on commit 197b77a

Please sign in to comment.