Fixes python get_secret always returning None (#3022)
get_secret was looking up secrets by the fully resolved key, but should use the simple key.
This commit is contained in:
parent
d1376db975
commit
654f5e2d35
|
@ -13,6 +13,8 @@ CHANGELOG
|
|||
instances, and the like. Values are treated as "plain old python data" and generally kept as
|
||||
simple values (like strings, numbers, etc.) or the simple collections supported by the Pulumi data model (specifically, dictionaries and lists).
|
||||
|
||||
- Fix `get_secret` in Python SDK always returning None.
|
||||
|
||||
### Compatibility
|
||||
|
||||
- Deprecated functions in `@pulumi/pulumi` will now issue warnings if you call them. Please migrate
|
||||
|
|
|
@ -66,7 +66,7 @@ class Config:
|
|||
:return: The configuration key's value, or None if one does not exist.
|
||||
:rtype: Optional[str]
|
||||
"""
|
||||
c = self.get(self.full_key(key))
|
||||
c = self.get(key)
|
||||
if c is None:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue