diff --git a/builder/triton/driver_triton.go b/builder/triton/driver_triton.go index 19e1e1902..5e6acffef 100644 --- a/builder/triton/driver_triton.go +++ b/builder/triton/driver_triton.go @@ -4,9 +4,8 @@ import ( "context" "errors" "net/http" - "time" - "sort" + "time" "github.com/hashicorp/packer/packer" "github.com/joyent/triton-go/client" @@ -200,7 +199,7 @@ func (d *driverTriton) WaitForImageCreation(imageId string, timeout time.Duratio if image == nil { return false, err } - return image.OS != "", err + return image.State == "active", err }, 3*time.Second, timeout,