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

Inconsistent type for LastOperation #38

Closed
tessereth opened this issue Jan 18, 2017 · 2 comments
Closed

Inconsistent type for LastOperation #38

tessereth opened this issue Jan 18, 2017 · 2 comments

Comments

@tessereth
Copy link

I'm very new to cloud foundry brokers and go so apologies if I'm missing something obvious but I seem to be running into a type inconsistency. I've been trying to implement the brokerapi interface and have the code

lastOperationResponse := brokerapi.LastOperationResponse{State: brokerapi.Failed)

This fails with the compiler error

cannot use state (type brokerapi.LastOperationState) as type string in assignment

This seems to be because brokerapi.Failed is a LastOperationState but the State field of the LastOperationResponse is a vanilla string. Am I missing something or should the State field of the LastOperationResponse struct be a LastOperationState?

@cf-gitbot
Copy link
Member

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@tessereth
Copy link
Author

Ah, never mind. I was using an old version of the code. I should be using LastOperation not LastOperationResponse. Thanks anyway.

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

No branches or pull requests

2 participants