thefactory/marathon-python

unexpected keyword argument 'tasks_stats' with client.get_app('app_id', embed_task_stats=True)

Opened this issue · 1 comments

Hello,
using Marathon 1.9.109 and marathon-python 0.13, when doing:
client.get_app('app_id', embed_task_stats=True)
I get unexpected keyword argument 'tasks_stats' on the init of MarathonApp.

It seems that the response from Marathon changed from taskStats to tasksStats (tasks is now plural)

hdost commented

Created https://jira.d2iq.com/browse/MARATHON-8761 as it appears to have been part of a regression. The client could technically handle for it by looking for either "taskStats" or "tasksStats", but that's not super desirable.