Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : openlmi-tools-lmiwbem
commit 521dc41775e5e5e5465b968476dee7a4074216d2 Author: Peter Hatina phatina@redhat.com Date: Tue May 13 10:03:46 2014 +0200
do not cast None in LMIUtil::_lmi_do_cast()
cli/lmi/shell/LMIUtil.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cli/lmi/shell/LMIUtil.py b/cli/lmi/shell/LMIUtil.py index c32660a..2dd62a4 100644 --- a/cli/lmi/shell/LMIUtil.py +++ b/cli/lmi/shell/LMIUtil.py @@ -139,7 +139,7 @@ def _lmi_do_cast(t, value, cast): return [_lmi_do_cast(t, val, cast) for val in value] elif isinstance(value, tuple): return (_lmi_do_cast(t, val, cast) for val in value) - return cast_func(value) + return cast_func(value) if not value is None else value
def lmi_cast_to_cim(t, value): """
cura-tools-devel@lists.fedorahosted.org