Merge pull request #13296 from Romain-Geissler-1A/url-and-connection-implies-remote

Option --url and --connection should imply --remote.
This commit is contained in:
OpenShift Merge Robot
2022-02-21 15:21:37 -05:00
committed by GitHub
3 changed files with 21 additions and 0 deletions

View File

@@ -126,6 +126,17 @@ See 'podman version --help'" "podman version --remote"
if grep -- " --remote " <<<"$output"; then
die "podman --help, with CONTAINER_CONNECTION set, is showing --remote"
fi
# When it detects --url or --connection, --remote is not an option
run_podman --url foobar --help
if grep -- " --remote " <<<"$output"; then
die "podman --help, with --url set, is showing --remote"
fi
run_podman --connection foobar --help
if grep -- " --remote " <<<"$output"; then
die "podman --help, with --connection set, is showing --remote"
fi
}
# Check that just calling "podman-remote" prints the usage message even