summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlois Mahdal <amahdal@redhat.com>2014-06-19 23:26:45 +0200
committerAlois Mahdal <amahdal@redhat.com>2014-06-20 12:20:05 +0200
commit40fcb8c32d92f8ee998f17b867b88acad5ad42cb (patch)
treea3118dd8ae923b8ad35231c5fc2eef667ef0471a
parent1df3341c948f64744b36d5e803166614d1f75032 (diff)
downloadopenlmi-providers-40fcb8c32d92f8ee998f17b867b88acad5ad42cb.tar.gz
openlmi-providers-40fcb8c32d92f8ee998f17b867b88acad5ad42cb.tar.xz
openlmi-providers-40fcb8c32d92f8ee998f17b867b88acad5ad42cb.zip
Fix comparison method
CIMDateTime is apparently able to compare itself
-rw-r--r--src/python/lmi/test/ind.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/lmi/test/ind.py b/src/python/lmi/test/ind.py
index dc4e900..65e5924 100644
--- a/src/python/lmi/test/ind.py
+++ b/src/python/lmi/test/ind.py
@@ -208,8 +208,8 @@ class IndicationTestProbe(object):
self.kwargs = kwargs
def __cmp__(self, other):
- a = self.ind.exported_objects()[0]['IndicationTime'].value
- b = other.ind.exported_objects()[0]['IndicationTime'].value
+ a = self.ind.exported_objects()[0]['IndicationTime']
+ b = other.ind.exported_objects()[0]['IndicationTime']
return cmp(a, b)
def __init__(self):