Speculative Flag inaccurate on Configuration Version List #459
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
When Listing Configuration Versions, the Speculative flag was always returning false.
It appears this was due to a trailing space in the struct.
go-tfe
version 1.3.0This change removes that space and allows the function call to return accurately if the CV is speculative.
Testing plan
To replicate, create a CV that is marked as speculative, then list CV's for that workspace.
The resulting
cv
variable will not be marked as Speculative.