summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-10-30 14:30:31 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-10-30 14:30:33 +0100
commit433fea303e634096f6576ad37423db82d46e28bb (patch)
tree4721bb998d6b7c566f2e2fe277089ef1f59409d8
parent228396a99dc88fc828f23d4072a46ca8de90282f (diff)
downloadpodman-433fea303e634096f6576ad37423db82d46e28bb.tar.gz
podman-433fea303e634096f6576ad37423db82d46e28bb.tar.bz2
podman-433fea303e634096f6576ad37423db82d46e28bb.zip
specgen: fix error message
drop spurious comma. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/specgen/generate/validate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/specgen/generate/validate.go b/pkg/specgen/generate/validate.go
index ed337321b..f7d80ff75 100644
--- a/pkg/specgen/generate/validate.go
+++ b/pkg/specgen/generate/validate.go
@@ -38,7 +38,7 @@ func verifyContainerResources(s *specgen.SpecGenerator) ([]string, error) {
memory.Swap = nil
}
if memory.Limit != nil && memory.Swap != nil && !sysInfo.SwapLimit {
- warnings = append(warnings, "Your kernel does not support swap limit capabilities,or the cgroup is not mounted. Memory limited without swap.")
+ warnings = append(warnings, "Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.")
memory.Swap = nil
}
if memory.Limit != nil && memory.Swap != nil && *memory.Swap < *memory.Limit {