Fix versionability detection: _properties is an OrderedDict not

a list of tuples! (despite what it looks like if you glance at it
quickly.)
pull/1/head
Michael Chisholm 2020-06-04 18:03:15 -04:00
parent 15e75cb4de
commit eaa7f17ee4
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ def _is_versionable(data):
# but do check SCOs # but do check SCOs
cls = class_maps["observables"][obj_type] cls = class_maps["observables"][obj_type]
is_versionable = _VERSIONING_PROPERTIES.issubset( is_versionable = _VERSIONING_PROPERTIES.issubset(
p[0] for p in cls._properties cls._properties
) )
return is_versionable, is_21 return is_versionable, is_21