From fda38685777ec604b6d74dbe60bb4e2cb38894be Mon Sep 17 00:00:00 2001 From: James Nugent Date: Mon, 14 Aug 2017 11:51:47 +0800 Subject: [PATCH] build: Apply goimports formatting to various files The following files were not formatted as the output of goimports(1) would create, causing the goimports linter to fail: command/agent/resources_endpoint.go nomad/resources_endpoint.go nomad/resources_endpoint_test.go --- command/agent/resources_endpoint.go | 3 ++- nomad/resources_endpoint.go | 1 + nomad/resources_endpoint_test.go | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) 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