Skip to content
Snippets Groups Projects
Commit 654c6823bfb4 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: fix flake8 B023

parent 6add84c9da8a
No related branches found
No related tags found
1 merge request!145👕 fix flake8 B023
...@@ -79,7 +79,6 @@ ...@@ -79,7 +79,6 @@
for mount_dict in container.attrs["Mounts"]: for mount_dict in container.attrs["Mounts"]:
if mount_dict["Destination"] == "/var/run/postgresql": if mount_dict["Destination"] == "/var/run/postgresql":
source = mount_dict["Source"] source = mount_dict["Source"]
return container, lambda: stop_postgresql(container), source
volumes = {} volumes = {}
volumes[pg_data_volume_name] = { volumes[pg_data_volume_name] = {
...@@ -83,6 +82,9 @@ ...@@ -83,6 +82,9 @@
volumes = {} volumes = {}
volumes[pg_data_volume_name] = { volumes[pg_data_volume_name] = {
break
if source:
return container, lambda: stop_postgresql(container), source
"bind": "/var/lib/postgresql/data", "bind": "/var/lib/postgresql/data",
"mode": "rw", "mode": "rw",
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment