-
Notifications
You must be signed in to change notification settings - Fork 294
Conversation
@obourdon - Travis tests fail because of diff snapd.go and gofmt/snapd.go. Please, make |
Since it doesn't support multiple addresses yet, we avoid plurals, and for the sake of shorter switches; I would recommend renaming this new switch to |
Also - could we instead use an
|
The |
Thanks for all remarks. I'll modify this tomorrow French time ;-) and submit the modified version once tested |
This is a great PR. Thanks for coming up with this improvement! |
I am almost done with the modifications and tests however I might have "dummy/basic" questions to ask.
Feel free to comment on all these at will |
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
addr := ctx.String("api-addr") | ||
// Contains a comma | ||
if strings.Index(addr, ",") != -1 { | ||
return serror.ErrBadAddress |
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.
Let's consider returning errors.New("Invalid address") here.
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.
OK
Not sure I understand why the TravisCI jobs were successful for Go 1.5 and not for Go 1.6 |
LGTM |
Fixes #418
Summary of changes:
Please note that plural was used (bind_addresses and not bind_address) because I have anticipated the fact that we might want to bind on several different addresses + port in the future.
Testing done:
@intelsdi-x/snap-maintainers