Skip to content

Commit a8c1562

Browse files
committed
Edited changelog entry and corrected documentation
1 parent b1feaec commit a8c1562

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## Unreleased
22

3-
IMPROVEMENTS:
3+
BUG FIXES:
44

5-
* Fixed the token namespace being set as the provider namespace, even when `set_namespace_from_token` was `false`.
5+
* Fixed the token namespace being set as the provider namespace, even when `set_namespace_from_token` was `false`. ([#2926](https://github.com/hashicorp/terraform-provider-vault/pull/2926/))
66

77
## 5.10.1 (June 26, 2026)
88

internal/provider/meta.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,13 @@ func (p *ProviderMeta) setClient() error {
375375
}
376376

377377
if namespace != "" {
378-
// This block now only executes when the namespace was explicitly
379-
// configured on the provider (not derived from the token).
378+
// This block executes when the namespace was explicitly
379+
// configured on the provider (not derived from the token)
380+
// or when the namespace was not configured on the provider but was derived from the token
380381
if err := d.Set(consts.FieldNamespace, namespace); err != nil {
381382
return fmt.Errorf("failed to set namespace on provider: %w", err)
382383
}
384+
log.Printf("[DEBUG] Setting namespace on client to %q", namespace)
383385
client.SetNamespace(namespace)
384386
}
385387

0 commit comments

Comments
 (0)