Skip to content

Add access to Docker config arrays. - #536

Merged
mizzy merged 1 commit into
mizzy:masterfrom
DarrellMozingo:docker_config_with_index
Sep 24, 2015
Merged

Add access to Docker config arrays.#536
mizzy merged 1 commit into
mizzy:masterfrom
DarrellMozingo:docker_config_with_index

Conversation

@DarrellMozingo

Copy link
Copy Markdown
Contributor

Support accessing arrays from the "docker inspect" output via normal index access.

Use case is for accessing specific port bindings as the test shows. The ordering for this use case (and most like it, probably) isn't guaranteed though, so open to suggestions for other ways to solve?

BTW, without this, trying 'HostConfig.PortBindings.80.[0].HostPort' would throw when trying to get value['0'] with this: TypeError: no implicit conversion of String into Integer.

Support accessing arrays from the "docker inspect" output via normal index access.
@mizzy

mizzy commented Sep 24, 2015

Copy link
Copy Markdown
Owner

Thanks.

mizzy added a commit that referenced this pull request Sep 24, 2015
@mizzy
mizzy merged commit 16ed51d into mizzy:master Sep 24, 2015
@mizzy

mizzy commented Sep 24, 2015

Copy link
Copy Markdown
Owner

Released as v2.24.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants