Skip to content

Commit

Permalink
Revert permission change
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel committed Apr 29, 2024
1 parent b9f251d commit bbd5976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def render_patroni_yml_file(
primary_cluster_endpoint=self.charm.async_replication.get_primary_cluster_endpoint(),
extra_replication_endpoints=self.charm.async_replication.get_standby_endpoints(),
)
self.render_file(f"{PATRONI_CONF_PATH}/patroni.yaml", rendered, 0o644)
self.render_file(f"{PATRONI_CONF_PATH}/patroni.yaml", rendered, 0o600)

def start_patroni(self) -> bool:
"""Start Patroni service using snap.
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def test_render_patroni_yml_file(peers_ips, patroni):
_render_file.assert_called_once_with(
"/var/snap/charmed-postgresql/current/etc/patroni/patroni.yaml",
expected_content,
0o644,
0o600,
)


Expand Down

0 comments on commit bbd5976

Please sign in to comment.