Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mesos.Credential.secret type mismatch #4

Closed
wants to merge 1 commit into from

Conversation

accelazh
Copy link

An Jan.16 2016 update of mesos/mesos-go changes type of
mesos.Credential.secret from bytes to string.

https://github.com/mesos/mesos-go/commit/7870a46fd9ad7d9d47dc518c46750c969c602bde#diff-8b984a6759078d3bd0e4a27e90ab541dR1239

This results a type mismatch at scheduler/init.go:50. Error
message below

cannot use secret (type []byte) as type *string in field value

This patch fixes it by converting secret from []byte to string
before passing it to mesos.Credential.

An Jan.16 2016 update of mesos/mesos-go changes type of
mesos.Credential.secret from bytes to string.

    mesos/mesos-go@7870a46#diff-8b984a6759078d3bd0e4a27e90ab541dR1239

This results a type mismatch at scheduler/init.go:50. Error
message below

    cannot use secret (type []byte) as type *string in field value

This patch fixes it by converting `secret` from []byte to string
before passing it to mesos.Credential.
@accelazh accelazh closed this Jan 21, 2016
@accelazh
Copy link
Author

Close it for now. We need some internal review before publishing it.

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.

1 participant