Skip to content

Commit 024f263

Browse files
committed
Wrong check
1 parent a7815dc commit 024f263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/charm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def _on_config_changed(self, event) -> None:
459459
try:
460460
self._validate_config_options()
461461
# update config on every run
462-
if self.update_config():
462+
if not self.update_config():
463463
logger.debug("Defer on_config_changed: cannot update configuration")
464464
event.defer()
465465
return

0 commit comments

Comments
 (0)