diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-09-16 12:37:06 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-09-22 16:13:37 -0400 |
commit | be15a01c5e636d105d638c958a69420a21ac7ff4 (patch) | |
tree | 1845348873e62825d57484b2a85dbaec4a699582 /test/e2e/rm_test.go | |
parent | d27fcbdc21a4c5fc201997068f871cf1e91561a1 (diff) | |
download | podman-be15a01c5e636d105d638c958a69420a21ac7ff4.tar.gz podman-be15a01c5e636d105d638c958a69420a21ac7ff4.tar.bz2 podman-be15a01c5e636d105d638c958a69420a21ac7ff4.zip |
Only add 127.0.0.1 entry to /etc/hosts with --net=none
The check for net=none was wrong. It just assumed when we do not create
the netns but have one set that we use the none mode. This however also
applies to a container which joins the pod netns.
To correctly check for the none mode use `config.NetMode.IsNone()`.
Fixes #11596
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/e2e/rm_test.go')
0 files changed, 0 insertions, 0 deletions