Skip to content

Commit

Permalink
Put that back too.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbednarski committed Sep 26, 2015
1 parent 6882f20 commit bcba5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jobspec/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func parseTasks(result *[]*structs.Task, obj *hclobj.Object) error {
return nil
}

var reDynamicPorts *regexp.Regexp = regexp.MustCompile("^[A-Z0-9_]+$")
var reDynamicPorts *regexp.Regexp = regexp.MustCompile("^[a-zA-Z0-9_]+$")
var errDynamicPorts = fmt.Errorf("DynamicPort label does not conform to naming requirements %s", reDynamicPorts.String())

func parseResources(result *structs.Resources, obj *hclobj.Object) error {
Expand Down
2 changes: 1 addition & 1 deletion website/source/docs/jobspec/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ The `resources` object supports the following keys:
The `network` object supports the following keys:

* `dynamic_ports` - List of port labels which may contain uppercase letters,
numbers and underscores (`^[A-Z0-9_]+$`). Each label will be assigned a
numbers and underscores (`^[a-zA-Z0-9_]+$`). Each label will be assigned a
dynamic port when the task starts. Ports are passed to the task environment as
`NOMAD_PORT_{LABEL}`. Drivers may infer additional semantics from the label.
See the relevant driver docs for details.
Expand Down

0 comments on commit bcba5db

Please sign in to comment.