mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Fix handler and systemd activation errors
On panic from handler: log warning and stack trace, report InternalServerError to client When using `podman system service` make determining the listening endpoint deterministic. // When determining _*THE*_ listening endpoint -- // 1) User input wins always // 2) systemd socket activation // 3) rootless honors XDG_RUNTIME_DIR // 4) if varlink -- adapter.DefaultVarlinkAddress // 5) lastly adapter.DefaultAPIAddress Fixes #5150 Fixes #5151 Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -6,6 +6,6 @@ import (
|
||||
)
|
||||
|
||||
func (s *APIServer) registerSystemHandlers(r *mux.Router) error {
|
||||
r.Handle(VersionedPath("/system/df"), APIHandler(s.Context, generic.GetDiskUsage))
|
||||
r.Handle(VersionedPath("/system/df"), s.APIHandler(generic.GetDiskUsage))
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user