mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
node-pool: fix validate name function comment typo. (#17927)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user