diff options
author | Gordon Chung <chungg@ca.ibm.com> | 2013-08-07 16:36:33 -0400 |
---|---|---|
committer | Gordon Chung <chungg@ca.ibm.com> | 2013-08-07 16:36:33 -0400 |
commit | 959e7fc797f368b9809ca2cde704ef0c32de0e70 (patch) | |
tree | c23fbe2b19c74f7ed20c4c9fbc867e54fa0d57a9 /pycadf/event.py | |
parent | 7bf0f20abe7e721f28d9638c32e05e3e40d95356 (diff) | |
download | pycadf-959e7fc797f368b9809ca2cde704ef0c32de0e70.tar.gz |
- need to update attribute validation to test against basestring
instead of str
- drop use of openstack logger
Change-Id: I2167cf8e468c0e932c476238120d768e5d4d443f
Fixes: bug1209387
Diffstat (limited to 'pycadf/event.py')
-rw-r--r-- | pycadf/event.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pycadf/event.py b/pycadf/event.py index 2bfb7e8..916b4c3 100644 --- a/pycadf/event.py +++ b/pycadf/event.py @@ -92,7 +92,8 @@ class Event(cadftype.CADFAbstractType): EVENT_KEYNAME_REASON, lambda x: isinstance(x, reason.Reason) and x.is_valid()) severity = cadftype.ValidatorDescriptor(EVENT_KEYNAME_SEVERITY, - lambda x: isinstance(x, str)) + lambda x: isinstance(x, + basestring)) def __init__(self, eventType=cadftype.EVENTTYPE_ACTIVITY, id=identifier.generate_uuid(), |