Add blacklisted/hidden OS support in LUDiagnoseOS
authorIustin Pop <iustin@google.com>
Mon, 20 Sep 2010 09:52:31 +0000 (11:52 +0200)
committerIustin Pop <iustin@google.com>
Thu, 30 Sep 2010 00:10:11 +0000 (20:10 -0400)
commitc950e9f2f23c5533db29d9e6c31359a04564ce40
tree597cb46822ac8da8b666beec14862908d3a54f4d
parentfc31fadd2abf3597f1b75f7041c21e50bf119848
Add blacklisted/hidden OS support in LUDiagnoseOS

This changes the behaviour of LUDiagnoseOS significantly.

The addition of hidden/blacklisted OSes would mean that each user-facing
client would have to filter intentionally such OSes from display, which
is not a good choice. Rather, the patch makes LUDiagnoseOS not return
any hidden or blacklisted OSes unless the hidden or respectively the
blacklisted status is requested.

While unconventional, this makes `gnt-instance reinstall --select-os`
work as intended without any changes; similar for gnt-os list. gnt-os
diagnose/gnt-os info are changed to query for, and display the new
fields.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py
man/gnt-os.sgml
scripts/gnt-os