summaryrefslogtreecommitdiff
path: root/cmd/podman/common/specgen.go
diff options
context:
space:
mode:
authorzhangguanzhang <zhangguanzhang@qq.com>2020-10-02 21:56:04 +0800
committerzhangguanzhang <zhangguanzhang@qq.com>2020-10-02 21:57:37 +0800
commit1492f3c936a0f6180db61a6500371aceebc37e39 (patch)
tree126ba7775a7ca86b8cc6e7d5edc9af3d73201e86 /cmd/podman/common/specgen.go
parentff3aa2b3d1b9765e0f09ed15dcf160065b54c889 (diff)
downloadpodman-1492f3c936a0f6180db61a6500371aceebc37e39.tar.gz
podman-1492f3c936a0f6180db61a6500371aceebc37e39.tar.bz2
podman-1492f3c936a0f6180db61a6500371aceebc37e39.zip
--rm option shold conflicts with --restart
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'cmd/podman/common/specgen.go')
-rw-r--r--cmd/podman/common/specgen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index e7b88eb3f..84ae70b6a 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -233,7 +233,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
// validate flags as needed
if err := c.validate(); err != nil {
- return nil
+ return err
}
s.User = c.User