Skip to content

Commit

Permalink
fix events backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeker-BMC committed Mar 11, 2024
1 parent be0387c commit 35e5bde
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/aapi/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ def as_aapi_dict(self):
res = {}

if '_type' in attrs.fields_dict(self.__class__):
if not self._type.startswith('Condition'):
if not self._type.startswith('Condition') and not self._type.startswith('Event'):
res['Type'] = self._type
if not self._type.startswith('Event'):
res['Type'] = self._type


if attrs.has(self):
for field in attrs.fields(self.__class__):
value = self.__getattribute__(field.name)
Expand Down

0 comments on commit 35e5bde

Please sign in to comment.