mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
code review
This commit is contained in:
committed by
Michael Schurter
parent
d65ae92dfa
commit
7d58209927
@@ -302,7 +302,7 @@ func TestHTTP_NodeDrain(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestHTTP_NodeEligble(t *testing.T) {
|
||||
func TestHTTP_NodeEligible(t *testing.T) {
|
||||
t.Parallel()
|
||||
require := require.New(t)
|
||||
httpTest(t, nil, func(s *TestAgent) {
|
||||
|
||||
@@ -120,7 +120,7 @@ func (c *NodeEligibilityCommand) Run(args []string) int {
|
||||
return 1
|
||||
}
|
||||
|
||||
nodeID = sanatizeUUIDPrefix(nodeID)
|
||||
nodeID = sanitizeUUIDPrefix(nodeID)
|
||||
nodes, _, err := client.Nodes().PrefixList(nodeID)
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf("Error updating scheduling eligibility: %s", err))
|
||||
|
||||
Reference in New Issue
Block a user