diff --git a/command/agent/resources_endpoint.go b/command/agent/resources_endpoint.go index fadc98145..cbd6661d5 100644 --- a/command/agent/resources_endpoint.go +++ b/command/agent/resources_endpoint.go @@ -1,8 +1,9 @@ package agent import ( - "github.com/hashicorp/nomad/nomad/structs" "net/http" + + "github.com/hashicorp/nomad/nomad/structs" ) // ResourceListRequest accepts a prefix and context and returns a list of matching diff --git a/nomad/resources_endpoint.go b/nomad/resources_endpoint.go index 35e576b79..5174c162a 100644 --- a/nomad/resources_endpoint.go +++ b/nomad/resources_endpoint.go @@ -2,6 +2,7 @@ package nomad import ( "fmt" + "github.com/hashicorp/go-memdb" "github.com/hashicorp/nomad/nomad/state" "github.com/hashicorp/nomad/nomad/structs" diff --git a/nomad/resources_endpoint_test.go b/nomad/resources_endpoint_test.go index 758b08cfa..26d604644 100644 --- a/nomad/resources_endpoint_test.go +++ b/nomad/resources_endpoint_test.go @@ -1,13 +1,14 @@ package nomad import ( + "strconv" + "testing" + "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/hashicorp/nomad/nomad/mock" "github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/testutil" "github.com/stretchr/testify/assert" - "strconv" - "testing" ) const jobIndex = 1000