Skip to content

Commit cc4a70c

Browse files
committed
Revert "Option --url and --connection should imply --remote."
This reverts commit ca980c2. Signed-off-by: Brent Baude <[email protected]>
1 parent cff448b commit cc4a70c

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

cmd/podman/registry/remote.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ func IsRemote() bool {
3030
fs.Usage = func() {}
3131
fs.SetInterspersed(false)
3232
fs.BoolVarP(&remoteFromCLI.Value, "remote", "r", remote, "")
33-
connectionFlagName := "connection"
34-
ignoredConnection := ""
35-
fs.StringVarP(&ignoredConnection, connectionFlagName, "c", "", "")
36-
urlFlagName := "url"
37-
ignoredURL := ""
38-
fs.StringVar(&ignoredURL, urlFlagName, "", "")
3933

4034
// The shell completion logic will call a command called "__complete" or "__completeNoDesc"
4135
// This command will always be the second argument
@@ -45,8 +39,6 @@ func IsRemote() bool {
4539
start = 2
4640
}
4741
_ = fs.Parse(os.Args[start:])
48-
// --connection or --url implies --remote
49-
remoteFromCLI.Value = remoteFromCLI.Value || fs.Changed(connectionFlagName) || fs.Changed(urlFlagName)
5042
})
5143
return podmanOptions.EngineMode == entities.TunnelMode || remoteFromCLI.Value
5244
}

docs/source/markdown/podman.1.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ and "$graphroot/networks" as rootless.
4242

4343
#### **--connection**, **-c**
4444
Connection to use for remote podman, including Mac and Windows (excluding WSL2) machines, (Default connection is configured in `containers.conf`)
45-
Setting this option will switch the **--remote** option to true.
4645
Remote connections use local containers.conf for default.
4746

4847
#### **--conmon**
@@ -109,7 +108,6 @@ environment variable is set, the **--remote** option defaults to true.
109108

110109
#### **--url**=*value*
111110
URL to access Podman service (default from `containers.conf`, rootless `unix://run/user/$UID/podman/podman.sock` or as root `unix://run/podman/podman.sock`).
112-
Setting this option will switch the **--remote** option to true.
113111

114112
- `CONTAINER_HOST` is of the format `<schema>://[<user[:<password>]@]<host>[:<port>][<path>]`
115113

test/system/001-basic.bats

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,6 @@ See 'podman version --help'" "podman version --remote"
126126
if grep -- " --remote " <<<"$output"; then
127127
die "podman --help, with CONTAINER_CONNECTION set, is showing --remote"
128128
fi
129-
130-
# When it detects --url or --connection, --remote is not an option
131-
run_podman --url foobar --help
132-
if grep -- " --remote " <<<"$output"; then
133-
die "podman --help, with --url set, is showing --remote"
134-
fi
135-
136-
run_podman --connection foobar --help
137-
if grep -- " --remote " <<<"$output"; then
138-
die "podman --help, with --connection set, is showing --remote"
139-
fi
140129
}
141130

142131
# Check that just calling "podman-remote" prints the usage message even

0 commit comments

Comments
 (0)