mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Using logDriver instead of query.LogDriver for podman play kube
Quick fix in play.go to use logDriver to set the correct log driver rather than overwriting query.LogDriver. [NO NEW TESTS NEEDED] Signed-off-by: Niall Crowe <nicrowe@redhat.com>
This commit is contained in:
@ -77,7 +77,7 @@ func PlayKube(w http.ResponseWriter, r *http.Request) {
|
|||||||
utils.Error(w, http.StatusInternalServerError, err)
|
utils.Error(w, http.StatusInternalServerError, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
query.LogDriver = config.Containers.LogDriver
|
logDriver = config.Containers.LogDriver
|
||||||
}
|
}
|
||||||
|
|
||||||
containerEngine := abi.ContainerEngine{Libpod: runtime}
|
containerEngine := abi.ContainerEngine{Libpod: runtime}
|
||||||
@ -89,7 +89,7 @@ func PlayKube(w http.ResponseWriter, r *http.Request) {
|
|||||||
Networks: query.Network,
|
Networks: query.Network,
|
||||||
NoHosts: query.NoHosts,
|
NoHosts: query.NoHosts,
|
||||||
Quiet: true,
|
Quiet: true,
|
||||||
LogDriver: query.LogDriver,
|
LogDriver: logDriver,
|
||||||
LogOptions: query.LogOptions,
|
LogOptions: query.LogOptions,
|
||||||
StaticIPs: staticIPs,
|
StaticIPs: staticIPs,
|
||||||
StaticMACs: staticMACs,
|
StaticMACs: staticMACs,
|
||||||
|
Reference in New Issue
Block a user