Resolve review comments

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
Matthew Heon
2019-03-26 13:55:19 -04:00
parent 86f03e0e52
commit 0cd92eae65
7 changed files with 28 additions and 30 deletions

View File

@@ -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