Stricter check for OS modifications passed to OpClusterSetParams
authorMichael Hanselmann <hansmi@google.com>
Tue, 31 Jan 2012 07:56:35 +0000 (08:56 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 1 Feb 2012 06:24:15 +0000 (07:24 +0100)
commit8f227489427edb12b2bf5edcd8d2210fe59ccd2d
tree440be5f6a605894a87c1452a54cf1ea4ba85b376
parent58f0ce168738a4502c858ea5b8dcc914fb3919c9
Stricter check for OS modifications passed to OpClusterSetParams

Don't just check the first element of each item, but also make sure the
OS name is a string and not empty.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/opcodes.py
test/ganeti.opcodes_unittest.py