Change behaviour of OpDiagnoseOS w.r.t. 'valid'
authorIustin Pop <iustin@google.com>
Tue, 21 Sep 2010 08:07:12 +0000 (10:07 +0200)
committerIustin Pop <iustin@google.com>
Thu, 30 Sep 2010 00:10:36 +0000 (20:10 -0400)
commitd22dfef7565baa9e0901fcf4712bacd20d3fb67b
treeb5f2771d6880becfdb94db8ac3449e388dbf0b6a
parent61a14bb3e714e2f410f0478a01d88541400d76f4
Change behaviour of OpDiagnoseOS w.r.t. 'valid'

This patch changes the behaviour of OpDiagnoseOS with regards to the
'valid' field to be similar to the one for the hidden/blacklisted
fields: unless this field is requested, invalid OSes are filtered out.

The rationale is that, except for the gnt-os info/diagnose, all other
users of this opcode are requesting the valid field just to filter out
invalid OSes, and not for any other use. Thus, changing this behaviour
makes these callers simpler.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py
lib/rapi/rlib2.py
scripts/gnt-instance
scripts/gnt-os
tools/burnin