Skip to content

Commit

Permalink
docs: note about repeatedly setting secret value in Juju 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaqq committed Sep 6, 2024
1 parent e794460 commit 83172a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ops/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,9 @@ def set_content(self, content: Dict[str, str]):
secret no longer exists, this method will succeed, but the unit will go
into error state on completion of the current Juju hook.
Changed in Juju 3.6: setting the content to the same exact value no
longer creates a new secret revision.
Args:
content: A key-value mapping containing the payload of the secret,
for example :code:`{"password": "foo123"}`.
Expand Down

0 comments on commit 83172a5

Please sign in to comment.