From 4f087674f4e30fa350ca694e239e3da52a80a6ad Mon Sep 17 00:00:00 2001 From: hc-github-team-nomad-core <82989552+hc-github-team-nomad-core@users.noreply.github.com> Date: Mon, 24 Jul 2023 02:28:28 -0500 Subject: [PATCH] backport of commit 7fe432042eaa0a97c0aaa40d302055eb18e8a9b0 (#18040) This pull request was automerged via backport-assistant --- nomad/structs/node_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/structs/node_pool.go b/nomad/structs/node_pool.go index babc3e1ed..4c17807d4 100644 --- a/nomad/structs/node_pool.go +++ b/nomad/structs/node_pool.go @@ -35,7 +35,7 @@ var ( validNodePoolName = regexp.MustCompile("^[a-zA-Z0-9-_]{1,128}$") ) -// ValidadeNodePoolName returns an error if a node pool name is invalid. +// ValidateNodePoolName returns an error if a node pool name is invalid. func ValidateNodePoolName(pool string) error { if !validNodePoolName.MatchString(pool) { return fmt.Errorf("invalid name %q, must match regex %s", pool, validNodePoolName)