LUOsDiagnose: Move legacy behaviour into filter
authorMichael Hanselmann <hansmi@google.com>
Tue, 8 Mar 2011 10:43:42 +0000 (11:43 +0100)
committerMichael Hanselmann <hansmi@google.com>
Mon, 14 Mar 2011 10:51:15 +0000 (11:51 +0100)
commit7738342cc66200d0ed0f4b658f960a63a4da8a34
treec9114cc470a9ebefc47b12e2d9e9e533dd5b2a65
parentbe3a4b145fbb80d50df7d9e743a301dd735daa60
LUOsDiagnose: Move legacy behaviour into filter

The behaviour of LUOsDiagnose needs special treatment. Commit d22dfef7
changed it to not return hidden, blacklisted or invalid OSes if the
respective field is not requested. This behaviour needs to be preserved
for users of the old opcode, but since it provides an implicit
filtering, it should not be done for LUQuery (the generic way to query
for resources) and is therefore moved from the underlying implementation
to LUOsDiagnose. Users of the new opcode should pass an explicit filter.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py