Skip to content

Commit 8e737f9

Browse files
committed
fix context propagation in auth
1 parent c5d9d66 commit 8e737f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

acceptance/auth/bundle_and_profile/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
=== Inside the bundle, profile flag not matching bundle host. Should use profile from the flag and not the bundle.
1515
>>> errcode [CLI] current-user me -p profile_name
16-
Error: cannot resolve bundle auth configuration: the host in the profile (https://non-existing-subdomain.databricks.com) doesn’t match the host configured in the bundle ([DATABRICKS_TARGET]). The profile "DEFAULT" has host="[DATABRICKS_TARGET]" that matches host in the bundle. To select it, pass "-p DEFAULT"
16+
Error: Get "https://non-existing-subdomain.databricks.com/api/2.0/preview/scim/v2/Me": (redacted)
1717

1818
Exit code: 1
1919

cmd/root/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func MustWorkspaceClient(cmd *cobra.Command, args []string) error {
216216
cmd.SetContext(SkipLoadBundle(cmd.Context()))
217217
}
218218

219-
ctx = cmdctx.SetConfigUsed(ctx, cfg)
219+
ctx = cmdctx.SetConfigUsed(cmd.Context(), cfg)
220220
cmd.SetContext(ctx)
221221

222222
// Try to load a bundle configuration if we're allowed to by the caller (see `./auth_options.go`).

0 commit comments

Comments
 (0)