Skip to content

Commit

Permalink
Merge pull request #66 from canonical/fix-ops-upgrade
Browse files Browse the repository at this point in the history
Fix bug introduced by latest ops
  • Loading branch information
nsklikas authored May 1, 2024
2 parents 3ffe384 + 29da9c7 commit dcad8ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _on_client_config_changed(self, event):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 8
LIBPATCH = 9

PYDEPS = ["jsonschema"]

Expand Down Expand Up @@ -570,7 +570,7 @@ def _set_provider_data(self, provider_config: List) -> None:
# Do we need to iterate on the relations? There should never be more
# than one
for relation in self._charm.model.relations[self._relation_name]:
relation.data[self._charm.app].update(providers=json.dumps(provider_config))
relation.data[self._charm.app]["providers"] = json.dumps(provider_config)

def _create_secrets(self, provider_config: List) -> None:
for conf in provider_config:
Expand Down

0 comments on commit dcad8ac

Please sign in to comment.