Commit e50d8412 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Use resource kind as OpQuery*'s description



This gives a hint as to what's queried. “QUERY(instance)” or
“QUERY(node)” are way better than just “QUERY”.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 37531236
......@@ -750,6 +750,7 @@ class OpQuery(OpCode):
@ivar filter: Query filter
"""
OP_DSC_FIELD = "what"
OP_PARAMS = [
_PQueryWhat,
("fields", ht.NoDefault, ht.TListOf(ht.TNonEmptyString),
......@@ -766,6 +767,7 @@ class OpQueryFields(OpCode):
@ivar fields: List of fields to retrieve
"""
OP_DSC_FIELD = "what"
OP_PARAMS = [
_PQueryWhat,
("fields", None, ht.TOr(ht.TNone, ht.TListOf(ht.TNonEmptyString)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment