Skip to content

Commit

Permalink
squash: modify warning
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily committed May 15, 2024
1 parent 5be6995 commit 6f4f9e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions spec/hardware/location.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ description: |

.. warning::

`like` operation is not supported by lab-controller, only `!=` and `==`
are allowed.
Because of Beaker limitation, ``~`` and ``!~`` operators commonly used with text-like
HW requirements cannot be used with ``lab-controller``. Only ``==`` and ``!=``
operators are supported.

example:
- |
Expand Down
4 changes: 2 additions & 2 deletions tmt/steps/provision/mrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ class GuestInspectType(TypedDict):
'disk.model_name',
'disk.driver',
'hostname',
'location.lab_controller',
'memory',
'virtualization.is_virtualized',
'virtualization.hypervisor',
'zcrypt',
'location.lab_controller',
]


Expand Down Expand Up @@ -462,14 +462,14 @@ def _transform_location_lab_controller(
'disk.model_name': _transform_disk_model_name, # type: ignore[dict-item]
'disk.size': _transform_disk_size, # type: ignore[dict-item]
'hostname': _transform_hostname, # type: ignore[dict-item]
'location.lab_controller': _transform_location_lab_controller, # type: ignore[dict-item]
'memory': _transform_memory, # type: ignore[dict-item]
'virtualization.is_virtualized': \
_transform_virtualization_is_virtualized, # type: ignore[dict-item]
'virtualization.hypervisor': \
_transform_virtualization_hypervisor, # type: ignore[dict-item]
'zcrypt.adapter': _transform_zcrypt_adapter, # type: ignore[dict-item]
'zcrypt.mode': _transform_zcrypt_mode, # type: ignore[dict-item]
'location.lab_controller': _transform_location_lab_controller, # type: ignore[dict-item]
}


Expand Down

0 comments on commit 6f4f9e7

Please sign in to comment.