summaryrefslogtreecommitdiff
path: root/pkg/specgen
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-24 10:49:15 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-24 10:49:18 +0200
commit23d431f0bf4ef4e550d23b43264c2ffdc940c767 (patch)
tree7848feb64d56c2e327ff9609f5667333b82bcfc6 /pkg/specgen
parent36039a38ea8463c31c14ce52c38f22cc93e72ede (diff)
downloadpodman-23d431f0bf4ef4e550d23b43264c2ffdc940c767.tar.gz
podman-23d431f0bf4ef4e550d23b43264c2ffdc940c767.tar.bz2
podman-23d431f0bf4ef4e550d23b43264c2ffdc940c767.zip
specgen: fix error message
the check is correct but the error message was stating the opposite. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/specgen')
-rw-r--r--pkg/specgen/container_validate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/specgen/container_validate.go b/pkg/specgen/container_validate.go
index 56c1a7ea9..87fc59dfe 100644
--- a/pkg/specgen/container_validate.go
+++ b/pkg/specgen/container_validate.go
@@ -34,7 +34,7 @@ func (s *SpecGenerator) Validate() error {
}
// Cannot set hostname and utsns
if len(s.ContainerBasicConfig.Hostname) > 0 && !s.ContainerBasicConfig.UtsNS.IsPrivate() {
- return errors.Wrap(ErrInvalidSpecConfig, "cannot set hostname when creating an UTS namespace")
+ return errors.Wrap(ErrInvalidSpecConfig, "cannot set hostname when running in the host UTS namespace")
}
// systemd values must be true, false, or always
if len(s.ContainerBasicConfig.Systemd) > 0 && !util.StringInSlice(strings.ToLower(s.ContainerBasicConfig.Systemd), SystemDValues) {