diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-03-26 13:55:19 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-03-27 10:12:18 -0400 |
commit | 0cd92eae65b31cdbaa19e3cccb0e3234196a6d17 (patch) | |
tree | 97ad5dec432154ba5bc88e758d5110494d45d35f /cmd/podman | |
parent | 86f03e0e526bbf39ea8a6cb18e3067a7e37bfd89 (diff) | |
download | podman-0cd92eae65b31cdbaa19e3cccb0e3234196a6d17.tar.gz podman-0cd92eae65b31cdbaa19e3cccb0e3234196a6d17.tar.bz2 podman-0cd92eae65b31cdbaa19e3cccb0e3234196a6d17.zip |
Resolve review comments
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/shared/create.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go index fc55e6f17..5f7263cb6 100644 --- a/cmd/podman/shared/create.go +++ b/cmd/podman/shared/create.go @@ -357,10 +357,8 @@ func ParseCreateOpts(ctx context.Context, c *cliconfig.PodmanCommand, runtime *l return nil, errors.Errorf("--cpu-quota and --cpus cannot be set together") } - if c.Flag("no-hosts").Changed && c.Flag("add-host").Changed { - if c.Bool("no-hosts") { - return nil, errors.Errorf("--no-hosts and --add-host cannot be set together") - } + if c.Bool("no-hosts") && c.Flag("add-host").Changed { + return nil, errors.Errorf("--no-hosts and --add-host cannot be set together") } // EXPOSED PORTS |