Replace Operator with Operand

* while HCL job-spec uses `operator`, JSON uses `Operand`
* `Operand` is required, it no longer defaults to `==`
  (@see nomad/structs/structs.go#L2297)
This commit is contained in:
K.C. Wong
2016-07-13 15:56:42 -07:00
parent 7e51a4181f
commit a4af8abefa

View File

@@ -433,8 +433,8 @@ The `Constraint` object supports the following keys:
This can be a literal value, another attribute or a regular expression if
the `Operator` is in "regexp" mode.
* `Operator` - `Operator` if omitted defaults to `==` and an take on the
following values:
* `Operand` - Specifies the test to be performed on the two targets. It takes on the
following values:
* `regexp` - Allows the `RTarget` to be a regular expression to be matched.