Commit d2970809 authored by Iustin Pop's avatar Iustin Pop
Browse files

Support 'null' in Luxi QueryJobs names field



Python code sometimes sends this, so let's support it even though it's
non-standard.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent fd958a3d
......@@ -324,8 +324,10 @@ decodeCall (LuxiCall call args) =
case call of
ReqQueryJobs -> do
(jids, jargs) <- fromJVal args
let rargs = map fromJSString jargs
return $ QueryJobs jids rargs
jids' <- case jids of
JSNull -> return []
_ -> fromJVal jids
return $ QueryJobs jids' jargs
ReqQueryInstances -> do
(names, fields, locking) <- fromJVal args
return $ QueryInstances names fields locking
......
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