Skip to content

Commit

Permalink
Fix container position
Browse files Browse the repository at this point in the history
  • Loading branch information
amandahla committed Jan 23, 2024
1 parent b13def7 commit fabf7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def change_config(self) -> None:
return
self.model.unit.status = ops.MaintenanceStatus("Configuring Synapse")
try:
self.pebble_service.change_config(container=container)
self.pebble_service.change_config(container)
except PebbleServiceError as exc:
self.model.unit.status = ops.BlockedStatus(str(exc))
return
Expand Down
2 changes: 1 addition & 1 deletion src/synapse/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def create_admin_user(container: ops.Container) -> typing.Optional[User]:
# please check the docs:
# https://docs.python.org/3/library/secrets.html#how-many-bytes-should-tokens-use
username = token_hex(16)
return create_user(container, username=username, admin=True)
return create_user(container=container, username=username, admin=True)


def create_user(
Expand Down

0 comments on commit fabf7be

Please sign in to comment.