summaryrefslogtreecommitdiff
path: root/libpod/container_validate.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-18 09:39:30 -0400
committerGitHub <noreply@github.com>2022-05-18 09:39:30 -0400
commit12964c7b93457a05441db081270a51083a1398f4 (patch)
tree3d8065963efc0f004547ff4a4dc4cee96b4fb2f9 /libpod/container_validate.go
parent9915b8f599da2f179c8dd1bff7951141a7bdaa1b (diff)
parent8684d41e387ae40cc64cd513bbc3f7ac319360f4 (diff)
downloadpodman-12964c7b93457a05441db081270a51083a1398f4.tar.gz
podman-12964c7b93457a05441db081270a51083a1398f4.tar.bz2
podman-12964c7b93457a05441db081270a51083a1398f4.zip
Merge pull request #14256 from vrothberg/run-1287
k8systemd: run k8s workloads in systemd
Diffstat (limited to 'libpod/container_validate.go')
-rw-r--r--libpod/container_validate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_validate.go b/libpod/container_validate.go
index d939c94e6..cfbdd2b1e 100644
--- a/libpod/container_validate.go
+++ b/libpod/container_validate.go
@@ -31,7 +31,7 @@ func (c *Container) validate() error {
// A container cannot be marked as an infra and service container at
// the same time.
- if c.IsInfra() && c.isService() {
+ if c.IsInfra() && c.IsService() {
return fmt.Errorf("cannot be infra and service container at the same time: %w", define.ErrInvalidArg)
}