Ensure that disk.params is always defined (and a dict)
authorIustin Pop <iustin@google.com>
Wed, 18 Jul 2012 12:18:12 +0000 (14:18 +0200)
committerIustin Pop <iustin@google.com>
Wed, 18 Jul 2012 12:47:49 +0000 (14:47 +0200)
commit5dbee5ea9e5b428a13e9498898fff70bbec0d660
tree5e595c089dc08864c7296cd6224d6ae91fd1898e
parent1b5b1c49d74fc0f8be2f1303b1e25a197814baff
Ensure that disk.params is always defined (and a dict)

Commit cce46164 fixed upgrading from other 2.6 versions, but
accidentally broke upgrading from 2.5 (disk.params was left as None,
which breaks FillDict). The simplest way to handle params is to always
set them to an empty dict (disregarding what they currently contain).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/objects.py