ops library 2.14.0 released: fixing RelationDataContent.update and adding ActionFailed.__str__

The Charm Tech team has just released version 2.14.0 of the ops framework.

It’s available from PyPI using pip install ops. Upgrade by running pip install --upgrade ops and/or pin to ops==2.14.0.

The main fix is following the dict.update signature and semantics in the RelationDataContent.update method and the new functionality is the addtion of the ActionFailed.__str__ which shows you the reason why something fails without manual debug intervention.

There are also many improvements, including moving the framework’s own tests to pytest and auto-formatting using ruff, which we hope are welcome to our collaborators.

Read more in the full release notes on GitHub.

1 Like