summaryrefslogtreecommitdiff
path: root/pkg/adapter/runtime_remote.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-08 21:12:19 +0200
committerGitHub <noreply@github.com>2019-05-08 21:12:19 +0200
commit49e09ddbf5a17eab025f661d4f57e5868181d57a (patch)
treef3fde54b86541bb67d5c3ef5d3ba4dba0c831676 /pkg/adapter/runtime_remote.go
parent7b54ebb48fecb4205304586a57a3e6b9b96befa0 (diff)
parent38199f4c28712912ea857bf9938dc8ea3798ca61 (diff)
downloadpodman-49e09ddbf5a17eab025f661d4f57e5868181d57a.tar.gz
podman-49e09ddbf5a17eab025f661d4f57e5868181d57a.tar.bz2
podman-49e09ddbf5a17eab025f661d4f57e5868181d57a.zip
Merge pull request #3042 from baude/bridge
add varlink bridge
Diffstat (limited to 'pkg/adapter/runtime_remote.go')
-rw-r--r--pkg/adapter/runtime_remote.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkg/adapter/runtime_remote.go b/pkg/adapter/runtime_remote.go
index 4986d16f7..8803a26fb 100644
--- a/pkg/adapter/runtime_remote.go
+++ b/pkg/adapter/runtime_remote.go
@@ -38,6 +38,7 @@ type RemoteImageRuntime struct{}
type RemoteRuntime struct {
Conn *varlink.Connection
Remote bool
+ cmd cliconfig.MainFlags
}
// LocalRuntime describes a typical libpod runtime
@@ -47,17 +48,17 @@ type LocalRuntime struct {
// GetRuntime returns a LocalRuntime struct with the actual runtime embedded in it
func GetRuntime(ctx context.Context, c *cliconfig.PodmanCommand) (*LocalRuntime, error) {
- runtime := RemoteRuntime{}
+ runtime := RemoteRuntime{
+ Remote: true,
+ cmd: c.GlobalFlags,
+ }
conn, err := runtime.Connect()
if err != nil {
return nil, err
}
-
+ runtime.Conn = conn
return &LocalRuntime{
- &RemoteRuntime{
- Conn: conn,
- Remote: true,
- },
+ &runtime,
}, nil
}