-
Notifications
You must be signed in to change notification settings - Fork 42
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
Skip loading config if auth is already explicitly configured directly #306
Conversation
Codecov ReportBase: 40.87% // Head: 40.91% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #306 +/- ##
==========================================
+ Coverage 40.87% 40.91% +0.04%
==========================================
Files 46 46
Lines 2662 2669 +7
==========================================
+ Hits 1088 1092 +4
- Misses 1485 1487 +2
- Partials 89 90 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Looks reasonable. Please check out the comment.
Reminds me of #185.
// See: https://github.com/databricks/databricks-sdk-go/issues/304 | ||
if l.isAnyAuthConfigured(cfg) { | ||
return nil | ||
} |
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.
This should only happen if cfg.Profile == ""
. Otherwise it may not pick up what is needed from the config file.
* Change APIError to use pointer receiver ([#298](#298)). * Drop duplicate prefix in randomized email ([#299](#299)). * Expand semver pattern to be compliant with https://semver.org ([#302](#302)). * Fix `apierr.APIError` pointer receivers ([#307](#307)). * Skip loading config if auth is already explicitly configured directly ([#306](#306)). * Sync fixes for smallest node selection from Terraform ([#301](#301)). * Updated from OpenAPI spec ([#305](#305)). Dependency updates: * Bump google.golang.org/api from 0.109.0 to 0.110.0 ([#303](#303)).
* Change APIError to use pointer receiver ([#298](#298)). * Drop duplicate prefix in randomized email ([#299](#299)). * Expand semver pattern to be compliant with https://semver.org ([#302](#302)). * Fix `apierr.APIError` pointer receivers ([#307](#307)). * Skip loading config if auth is already explicitly configured directly ([#306](#306)). * Sync fixes for smallest node selection from Terraform ([#301](#301)). * Updated from OpenAPI spec ([#305](#305)). Dependency updates: * Bump google.golang.org/api from 0.109.0 to 0.110.0 ([#303](#303)).
Fix #304
This issue unblocks databricks/terraform-provider-databricks#1848