Skip to content

Commit

Permalink
Remove JSON tag from UseImageHosts in ContainerConfig
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mheon committed Jan 20, 2025
1 parent a860345 commit cfeefb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/container_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit cfeefb3

Please sign in to comment.