mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 22:43:05 +00:00
virtcontainers/hook: fix HookState
`HookState` was removed from libcontainer, fortunately it was an alias for `specs.State`, use `specs.State` instead. Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
f372b85848
commit
776da0878e
@ -13,7 +13,7 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/opencontainers/runc/libcontainer/configs"
|
||||
specs "github.com/opencontainers/runtime-spec/specs-go"
|
||||
)
|
||||
|
||||
var logFile = "/tmp/mock_hook.log"
|
||||
@ -61,7 +61,7 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
var state configs.HookState
|
||||
var state specs.State
|
||||
err = json.Unmarshal(stateBuf, &state)
|
||||
if err != nil {
|
||||
fmt.Fprintf(f, "Could not unmarshal HookState json: %s\n", err)
|
||||
|
Loading…
Reference in New Issue
Block a user