File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def _on_config_changed(self, _) -> None:
67
67
68
68
# Increment this PATCH version before using `charmcraft publish-lib` or reset
69
69
# to 0 if you are raising the major API version
70
- LIBPATCH = 0
70
+ LIBPATCH = 4
71
71
72
72
# pylint: disable=wrong-import-position
73
73
import json
@@ -195,7 +195,7 @@ def get_shared_secret(
195
195
return None
196
196
try :
197
197
secret = model .get_secret (id = shared_secret_id )
198
- password = secret .get_content ().get (SHARED_SECRET_CONTENT_LABEL )
198
+ password = secret .get_content (refresh = True ).get (SHARED_SECRET_CONTENT_LABEL )
199
199
if not password :
200
200
return None
201
201
return SecretStr (password )
@@ -274,7 +274,7 @@ def get_encryption_key_secret(
274
274
secret = model .get_secret (label = ENCRYPTION_KEY_SECRET_LABEL )
275
275
else :
276
276
secret = model .get_secret (id = encryption_key_secret_id )
277
- encryption_key = secret .get_content ().get (ENCRYPTION_KEY_SECRET_CONTENT_LABEL )
277
+ encryption_key = secret .get_content (refresh = True ).get (ENCRYPTION_KEY_SECRET_CONTENT_LABEL )
278
278
if not encryption_key :
279
279
return None
280
280
return encryption_key .encode ('utf-8' )
You can’t perform that action at this time.
0 commit comments