Skip to content

Commit c670a01

Browse files
committed
aws compat
1 parent 63c1436 commit c670a01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wodoo/lib_module.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def _get_outdated_modules():
641641
)
642642

643643
if not no_restart:
644-
if config.use_docker:
644+
if config.use_docker and is_docker_available():
645645
Commands.invoke(
646646
ctx, "kill", machines=get_services(config, "odoo_base")
647647
)
@@ -1206,6 +1206,9 @@ def show_conflicting_modules(config):
12061206
def _exec_update(
12071207
config, params, non_interactive=False, stdout=False, write_to_console=True
12081208
):
1209+
if os.getenv("DOCKER_MACHINE") == "1":
1210+
ret = subprocess.run([os.getenv("WODOO_PYTHON")] + ["/odoolib/update_modules.py"] + params)
1211+
yield ret.returncode
12091212
params = ["odoo_update", "/odoolib/update_modules.py"] + params
12101213
if not non_interactive:
12111214
yield __cmd_interactive(

0 commit comments

Comments
 (0)