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:
Niall Crowe
2022-06-03 14:07:09 +01:00
parent f7a54088c3
commit 3c9b75c217

View File

@ -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,