-
Notifications
You must be signed in to change notification settings - Fork 10
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: missing vds info with r/cluster
import
#235
base: main
Are you sure you want to change the base?
fix: missing vds info with r/cluster
import
#235
Conversation
r/cluster
import
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.
The CI caught that the err
is assigned but not used.
getFlattenedVdsSpecsForRefs
returns both a slice of maps and an error. So the err
is necessary to handle potential errors from the apiClient.Clusters.GetVdses
.
here is what the results are now:
|
f364358
to
e3d8f78
Compare
r/cluster
importr/cluster
import
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.
@burnsjared0415 could you address the following issues failing during the linkting?
Error: internal/cluster/cluster_operations.go:376:21: ineffectual assignment to err (ineffassign)
flattenedVdsSpecs, err := getFlattenedVdsSpecsForRefs(ctx, clusterObj.ID, apiClient)
^
Error: internal/cluster/cluster_operations.go:406:21: ineffectual assignment to err (ineffassign)
flattenedVdsSpecs, err := getFlattenedVdsSpecsForRefs(ctx, clusterId, apiClient)
Updating Cluster import to solve issues where vds is blank on data source. Signed-off-by: Jared Burns <jared.burns@broadcom.com>
e3d8f78
to
f09fef2
Compare
Rebased based on the changes to main recently. Will need updates given the SDK changes. |
In order to have a good experience with our community, we recommend that you read the contributing guidelines for making a pull request.
Summary of Pull Request
Updating Cluster import to solve issues where vds is blank on data source.
Type of Pull Request
Please describe:
Related to Existing Issues
Ref: #210
Test and Documentation Coverage
For bug fixes or features:
Breaking Changes?