mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +08:00
specgen: fix error message
drop spurious comma. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user