mirror of
https://github.com/containers/podman.git
synced 2025-12-08 06:39:05 +08:00
Resolve review comments
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user