Commit 8e7078e0 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

opcodes: Document OpQueryFields' parameters

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent faaabe3c
......@@ -109,6 +109,9 @@ _PNodeGroupAllocPolicy = \
_PGroupNodeParams = ("ndparams", None, ht.TMaybeDict,
"Default node parameters for group")
_PQueryWhat = ("what", ht.NoDefault, ht.TElemOf(constants.QR_OP_QUERY),
"Resource(s) to query for")
_PIpCheckDoc = "Whether to ensure instance's IP address is inactive"
#: OP_ID conversion regular expression
......@@ -644,8 +647,7 @@ class OpQuery(OpCode):
("what", ht.NoDefault, ht.TElemOf(constants.QR_OP_QUERY),
"Resource(s) to query for"),
("fields", ht.NoDefault, ht.TListOf(ht.TNonEmptyString),
"Requested fields"),
("filter", None, ht.TOr(ht.TNone,
......@@ -662,8 +664,9 @@ class OpQueryFields(OpCode):
("what", ht.NoDefault, ht.TElemOf(constants.QR_OP_QUERY), None),
("fields", None, ht.TOr(ht.TNone, ht.TListOf(ht.TNonEmptyString)), None),
("fields", None, ht.TOr(ht.TNone, ht.TListOf(ht.TNonEmptyString)),
"Requested fields; if not given, all are returned"),
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