From cfeefb3219a3d93069344b400166cd5c9252b0c9 Mon Sep 17 00:00:00 2001 From: Matt Heon Date: Mon, 20 Jan 2025 13:43:51 -0500 Subject: [PATCH] Remove JSON tag from UseImageHosts in ContainerConfig This did not have a JSON tag prior to being added by #25008. By adding one we risk a breaking change in the DB (particularly given the change in case - useImageHosts vs UseImageHosts) which we should try to avoid. Remove the tag given this. Signed-off-by: Matt Heon --- libpod/container_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpod/container_config.go b/libpod/container_config.go index 34a4c2e53e..3ccfad43c1 100644 --- a/libpod/container_config.go +++ b/libpod/container_config.go @@ -292,7 +292,7 @@ type ContainerNetworkConfig struct { // UseImageHosts indicates that /etc/hosts should not be // bind-mounted inside the container. // Conflicts with HostAdd. - UseImageHosts bool `json:"useImageHosts"` + UseImageHosts bool // BaseHostsFile is the base file to create the `/etc/hosts` file inside the container. // This must either be an absolute path to a file on the host system, or one of the // special flags `image` or `none`.