I'm using event_stream() from client to listen Marathon events and got a parsing error caused by missing pods attribute.
File "/usr/lib/python2.7/site-packages/marathon/client.py", line 752, in event_stream
yield ef.process(event_data)
File "/usr/lib/python2.7/site-packages/marathon/models/events.py", line 159, in process
return clazz.from_json(event)
File "/usr/lib/python2.7/site-packages/marathon/models/base.py", line 35, in from_json
return cls(**{to_snake_case(k): v for k, v in attributes.items()})
File "/usr/lib/python2.7/site-packages/marathon/models/events.py", line 29, in __init__
self._set(attribute, kwargs.get(attribute))
File "/usr/lib/python2.7/site-packages/marathon/models/events.py", line 37, in _set
attribute) # If this attribute already has a Marathon object instantiate it.
File "/usr/lib/python2.7/site-packages/marathon/models/base.py", line 35, in from_json
return cls(**{to_snake_case(k): v for k, v in attributes.items()})
File "/usr/lib/python2.7/site-packages/marathon/models/deployment.py", line 73, in __init__
self.original = MarathonDeploymentOriginalState.from_json(original)
File "/usr/lib/python2.7/site-packages/marathon/models/base.py", line 35, in from_json
return cls(**{to_snake_case(k): v for k, v in attributes.items()})
TypeError: __init__() got an unexpected keyword argument 'pods'
I checked some others deployment events, and they also need pods attribute.
I'm using event_stream() from client to listen Marathon events and got a parsing error caused by missing pods attribute.
I checked some others deployment events, and they also need pods attribute.
I'm using Marathon 1.4.0