Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Bug/41 #42

wants to merge 3 commits into from

Conversation

mbovo
Copy link
Contributor

@mbovo mbovo commented Aug 23, 2017

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

Copy link
Contributor

@fntlnz fntlnz left a 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
Copy link
Contributor

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!

Copy link
Contributor

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

@fntlnz
Copy link
Contributor

fntlnz commented Aug 23, 2017

@mbovo worth using v17.06.1-ce ?

@gianarb reviewing this PR evidences that we are missing a lot of testing !

@fntlnz
Copy link
Contributor

fntlnz commented Aug 28, 2017

@mbovo we needed to address this so @gianarb created a PR on top of your work keeping your commits. #46

@gianarb
Copy link
Owner

gianarb commented Aug 28, 2017

thanks @mbovo !#46

@gianarb gianarb closed this Aug 28, 2017
@mbovo
Copy link
Contributor Author

mbovo commented Aug 30, 2017

No problem, was afk for a while in the last days

@gianarb
Copy link
Owner

gianarb commented Aug 30, 2017

Sorry, I was happy to have it merged asap! ❤️

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants