Skip to content

Commit

Permalink
docs: config-changed is triggered by Juju trust (#1357)
Browse files Browse the repository at this point in the history
Note that `juju trust` changes will trigger a config-changed event.

I couldn't find any other cases that aren't already mentioned in the
`ConfigChangedEvent` doc that would trigger config-changed, so I hope
this is all.

Fixes #1211.
  • Loading branch information
tonyandrewmeyer authored Sep 5, 2024
1 parent 8578bdd commit e794460
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ops/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ class ConfigChangedEvent(HookEvent):
rescheduling, on unit upgrade or refresh, and so on.
- As a specific instance of the above point: when networking changes
(if the machine reboots and comes up with a different IP).
- When the app config changes, for example when `juju trust` is run.
Any callback method bound to this event cannot assume that the
software has already been started; it should not start stopped
Expand Down

0 comments on commit e794460

Please sign in to comment.