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:
Charlie Hills 2019-08-02 11:59:51 -05:00 committed by Luke Hoban
parent d1376db975
commit 654f5e2d35
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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