Skip to content

Commit

Permalink
gsquash: update allowed operator
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily committed May 15, 2024
1 parent e142107 commit fa69ea0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions spec/hardware/location.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ description: |
.. versionchanged:: 1.33
Added ``location.lab-controller`` into specification.

.. warning::

`like` operation is not supported by lab-controller, only `!=` and `==`
are allowed.

example:
- |
# Select a system that is not managed by deprecated lab controllers
# Select a system that is not managed lab-01.foo.bar.com lab controller
location:
lab-controller: "!~ deprecated-lab-.*.foo.bar.com"
lab-controller: "!= lab-01.foo.bar.com"
2 changes: 1 addition & 1 deletion tmt/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ def _parse_location(spec: Spec) -> BaseConstraint:
TextConstraint.from_specification(
'location.lab-controller',
spec['lab-controller'],
allowed_operators=[Operator.EQ, Operator.NEQ, Operator.MATCH, Operator.NOTMATCH])
allowed_operators=[Operator.EQ, Operator.NEQ])
]

return group
Expand Down

0 comments on commit fa69ea0

Please sign in to comment.