mirror of
https://github.com/containers/podman.git
synced 2025-06-06 15:00:40 +08:00

when using podman-remote on windows, the bridge format must account for how windows deals with escape quoting. in this case, it does not need any. also, reduced duplicated code around generating the bridge endpoint for the unix and windows platforms. Signed-off-by: baude <bbaude@redhat.com>
17 lines
437 B
Go
17 lines
437 B
Go
// +build linux darwin
|
|
// +build remoteclient
|
|
|
|
package adapter
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/containers/libpod/cmd/podman/remoteclientconfig"
|
|
)
|
|
|
|
func formatDefaultBridge(remoteConn *remoteclientconfig.RemoteConnection, logLevel string) string {
|
|
return fmt.Sprintf(
|
|
`ssh -T %s@%s -- /usr/bin/varlink -A \'/usr/bin/podman --log-level=%s varlink \\\$VARLINK_ADDRESS\' bridge`,
|
|
remoteConn.Username, remoteConn.Destination, logLevel)
|
|
}
|