diff options
Diffstat (limited to 'pkg/varlinkapi/config.go')
-rw-r--r-- | pkg/varlinkapi/config.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/varlinkapi/config.go b/pkg/varlinkapi/config.go index 3c6a3311c..2da3787be 100644 --- a/pkg/varlinkapi/config.go +++ b/pkg/varlinkapi/config.go @@ -2,6 +2,7 @@ package varlinkapi import ( ioprojectatomicpodman "github.com/projectatomic/libpod/cmd/podman/varlink" + "github.com/projectatomic/libpod/libpod" "github.com/urfave/cli" ) @@ -9,10 +10,11 @@ import ( type LibpodAPI struct { Cli *cli.Context ioprojectatomicpodman.VarlinkInterface + Runtime *libpod.Runtime } // New creates a new varlink client -func New(cli *cli.Context) *ioprojectatomicpodman.VarlinkInterface { - lp := LibpodAPI{Cli: cli} +func New(cli *cli.Context, runtime *libpod.Runtime) *ioprojectatomicpodman.VarlinkInterface { + lp := LibpodAPI{Cli: cli, Runtime: runtime} return ioprojectatomicpodman.VarlinkNew(&lp) } |