summaryrefslogtreecommitdiff
path: root/cmd/podman/attach.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/attach.go')
-rw-r--r--cmd/podman/attach.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/attach.go b/cmd/podman/attach.go
index 041cc0388..7cbf9ca86 100644
--- a/cmd/podman/attach.go
+++ b/cmd/podman/attach.go
@@ -4,6 +4,7 @@ import (
"os"
"github.com/pkg/errors"
+ "github.com/projectatomic/libpod/cmd/podman/libpodruntime"
"github.com/projectatomic/libpod/libpod"
"github.com/urfave/cli"
)
@@ -45,7 +46,7 @@ func attachCmd(c *cli.Context) error {
return errors.Errorf("attach requires the name or id of one running container or the latest flag")
}
- runtime, err := getRuntime(c)
+ runtime, err := libpodruntime.GetRuntime(c)
if err != nil {
return errors.Wrapf(err, "error creating libpod runtime")
}