Browse Source

Merge "Added information how to use JsonFilter"

changes/05/679705/1
Zuul 2 years ago
committed by Gerrit Code Review
parent
commit
2c3017ab26
  1. 9
      cinder/scheduler/filters/json_filter.py

9
cinder/scheduler/filters/json_filter.py

@ -22,7 +22,14 @@ from cinder.scheduler import filters
class JsonFilter(filters.BaseBackendFilter):
"""Backend filter for simple JSON-based grammar for selecting backends."""
"""Backend filter for simple JSON-based grammar for selecting backends.
If you want to choose one of your backend,
make a query hint, for example:
cinder create --hint query='["=", "$backend_id", "rbd:vol@ceph#cloud"]'
"""
def _op_compare(self, args, op):
"""Compare first item of args with the rest using specified operator.

Loading…
Cancel
Save