Commit 89352544 authored by Helga Velroyen's avatar Helga Velroyen
Browse files

Implement 'QueryInstances' call in Haskell luxi server



While the command line uses the generic 'Query' call,
rapi calls 'QueryInstances'. 'QueryInstances' so far
was not fully implemented in the Haskell implementation
of the luxi server. This was discovered when trying to
switch from python to haskell queries. This patch
fixes the Haskell luxi server implementation wrt to that.
Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent ec81293c
......@@ -182,6 +182,10 @@ handleCall _ cfg (QueryNodes names fields lock) =
handleClassicQuery cfg (Qlang.ItemTypeOpCode Qlang.QRNode)
(map Left names) fields lock
handleCall _ cfg (QueryInstances names fields lock) =
handleClassicQuery cfg (Qlang.ItemTypeOpCode Qlang.QRInstance)
(map Left names) fields lock
handleCall _ cfg (QueryGroups names fields lock) =
handleClassicQuery cfg (Qlang.ItemTypeOpCode Qlang.QRGroup)
(map Left names) fields lock
......
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