Statistics
| Branch: | Tag: | Revision:

root / test / ganeti.objects_unittest.py @ 63d44c55

History | View | Annotate | Download (1.4 kB)

# Date Author Comment
4c14965f 08/05/2009 05:55 pm Guido Trotter

ConfigObject.ToDict() only export non-None values

The method is changed to a normal loop, to avoid calling getattr()
twice. Also getstate is changed to just use ToDict() by default.

This should also make getstate work for objects which have to
override the ToDict function because they contain other objects....