HookState adhears to OCI

Signed-off-by: George Lestaris <glestaris@pivotal.io>
Signed-off-by: Ed King <eking@pivotal.io>
This commit is contained in:
George Lestaris
2016-04-06 16:57:59 +01:00
committed by Ed King
parent 3f4f4420fd
commit f7ae27bfb7
10 changed files with 92 additions and 32 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import (
"strings"
"github.com/codegangsta/cli"
"github.com/opencontainers/runc/libcontainer/utils"
"github.com/opencontainers/specs/specs-go"
)
@@ -103,7 +104,7 @@ func execProcess(context *cli.Context) (int, error) {
if err != nil {
return -1, err
}
bundle := searchLabels(state.Config.Labels, "bundle")
bundle := utils.SearchLabels(state.Config.Labels, "bundle")
p, err := getProcess(context, bundle)
if err != nil {
return -1, err