Closed natalysheinin closed 3 years ago
@DeviaVir do you prefer me building a client in the else if c.ImpersonatedUserEmail != "" {
instead of this approach?
@DeviaVir do you prefer me building a client in the else if c.ImpersonatedUserEmail != "" { instead of this approach?
I think we´d want to use the same background context, so it might make sense to create the client there and append it (or refactor it a bit)
@DeviaVir do you prefer me building a client in the else if c.ImpersonatedUserEmail != "" { instead of this approach?
I think we´d want to use the same background context, so it might make sense to create the client there and append it (or refactor it a bit)
Actually it seems like the background context is completely unrelated to the client so it doesn't make sense to add it at all? For example, the context is passed to the services initialized regardless of whether it's used to setup the httpclient or not:
directorySvc, err := directory.NewService(context, clientOptions...)
Makes sense
https://github.com/DeviaVir/terraform-provider-gsuite/releases/tag/v0.1.61 let me know if this works better for you
Bugfix for changes introduces in https://github.com/DeviaVir/terraform-provider-gsuite/pull/171
Do tests pass?
Does binary work as expected?
If metadata endpoint is blocked or email is not configured properly, the following error will show (this is not an error with the code, but a config error):