func nodePreSecretID(node *structs.Node) (bool, error) {
	a := node.Attributes
	if a == nil {
		return false, fmt.Errorf("node doesn't have attributes set")
	}

	v, ok := a["nomad.version"]
	if !ok {
		return false, fmt.Errorf("missing Nomad version in attributes")
	}

	return !strings.HasPrefix(v, "0.5"), nil
}
// nodePreSecretID is a helper that returns whether the node is on a version
// that is before SecretIDs were introduced
nodePreSecretID is a helper that returns whether the node is on a version
that is before SecretIDs were introduced
// nodePreSecretID is a helper that returns whether the node is on a version // that is before SecretIDs were introduced
func nodePreSecretID(node *structs.Node) (bool, error) {
	a := node.Attributes
	if a == nil {
		return false, fmt.Errorf("node doesn't have attributes set")
	}
	v, ok := a["nomad.version"]
	if !ok {
		return false, fmt.Errorf("missing Nomad version in attributes")
	}
	return !strings.HasPrefix(v, "0.5"), nil
}
func nodePreSecretID ( node * structs . Node ) ( bool , error ) { a := node . Attributes if a == nil { return false , fmt . Errorf ( " " ) } v , ok := a [ " " ] if ! ok { return false , fmt . Errorf ( " " ) } return ! strings . HasPrefix ( v , " " ) , nil }
nodePreSecretID is a helper that returns whether the node is on a version
that is before SecretIDs were introduced
nodePreSecretID is a helper that returns whether the node is on a version that is before SecretIDs were introduced