Closed zanes2016 closed 7 years ago
This is not an issue. This was a misunderstanding of the API.
client.Application("app-name") properly returns the LastTaskFailure field as supplied by the URI endpoint /v2/apps/app-name. Marathon URI endpoint /v2/apps does not return LastTaskFailure for each app; which is why it is empty in the client.Applications() call.
The lastTaskFailure field does not seem to be parsed correctly; it is always nil.
Marathon Version: 1.4.7-1.0.657.ubuntu1404
Is anyone else experiencing this same issue?
Here's a the sample curl command that shows the lastTaskFailure:
Here's a MarshalIndent output of the same App that is missing the lastTaskFailure:
Here's a code snippet of what I have to print the above json string: