mirror of
https://github.com/fosrl/olm.git
synced 2026-02-22 21:06:42 +00:00
Fixing endpoint handling
This commit is contained in:
3
main.go
3
main.go
@@ -194,7 +194,7 @@ func runOlmMainWithArgs(ctx context.Context, cancel context.CancelFunc, signalCt
|
||||
fmt.Println("Olm version " + olmVersion)
|
||||
os.Exit(0)
|
||||
}
|
||||
logger.Info("Olm version " + olmVersion)
|
||||
logger.Info("Olm version %s", olmVersion)
|
||||
|
||||
config.Version = olmVersion
|
||||
|
||||
@@ -215,6 +215,7 @@ func runOlmMainWithArgs(ctx context.Context, cancel context.CancelFunc, signalCt
|
||||
HTTPAddr: config.HTTPAddr,
|
||||
SocketPath: config.SocketPath,
|
||||
Version: config.Version,
|
||||
Agent: "olm-cli",
|
||||
OnExit: cancel, // Pass cancel function directly to trigger shutdown
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user