-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug/41 #42
Bug/41 #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things
service, _, err := p.dockerClient.ServiceInspectWithRaw(ctx, serviceId) | ||
// Correct bug #41 using docker/docker v17.06.1-ce-rc4 | ||
siopts := types.ServiceInspectOptions{} | ||
siopts.InsertDefaults = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would avoid instantiating and then assigning siopts
here.
It's just not needed anywhere else, it even fits 120 columns!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment like:
// Service inspect returns a service showing default values in empty fields
I had to actually execute the code to understand how the struct was filled, I don't want to do that too in the future :D
No problem, was afk for a while in the last days |
Sorry, I was happy to have it merged asap! ❤️ |
Solve the issue #41
@fntlnz as you reported, i've updated using the workaround suggested moby/moby/issues/33989
This break vendoring at this time. Running again dep ensure will replace the docker/docker lib with version 17.5.0-ce-rc3