Skip to content

API v1.19 breaks tugboat.Methods#info #17

@bleporini

Description

@bleporini

For /info endpoint, API v1.19 changed some int values into boolean values, such as IPv4Forwarding, MemoryLimit and more.

So it's not compatible anymore with

memoryLimit: Int, swapLimit: Int, ipv4Forwarding: Int)

or

("MemoryLimit", JInt(memLim)) <- info

It seem to be the root cause for the following error when calling info:

head of empty list
java.util.NoSuchElementException: head of empty list
    at scala.collection.immutable.Nil$.head(List.scala:337)
    at scala.collection.immutable.Nil$.head(List.scala:334)
    at tugboat.Rep$$anon$7$$anonfun$map$4.apply(Rep.scala:250)
    at tugboat.Rep$$anon$7$$anonfun$map$4.apply(Rep.scala:230)
    at tugboat.Docker$Completion$$anon$2.onCompleted(Docker.scala:61)
    at com.ning.http.client.AsyncCompletionHandler.onCompleted(AsyncCompletionHandler.java:63)

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions