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

:ambulance: fix issue with sources not mounted in some cases

This is due to different version of python. Try to avoid a case on odoo type and put all known version instead
parent 79b9e85a409a
No related branches found
No related tags found
1 merge request!102🚑 fix issue with sources not mounted in some cases
...@@ -822,7 +822,16 @@ ...@@ -822,7 +822,16 @@
if odoo_help: if odoo_help:
arg.append("--help") arg.append("--help")
pythons = (
"python2.7",
"python3.5",
"python3.6",
"python3.8",
"python3.9",
"python3.10",
)
# bind Odoo sources # bind Odoo sources
if odoo_sources: if odoo_sources:
_logger.info("Binding Odoo sources at %s", odoo_sources) _logger.info("Binding Odoo sources at %s", odoo_sources)
if odoo_type in (ODOO_10, ODOO_11, ODOO_13, ODOO_15): if odoo_type in (ODOO_10, ODOO_11, ODOO_13, ODOO_15):
...@@ -825,19 +834,7 @@ ...@@ -825,19 +834,7 @@
# bind Odoo sources # bind Odoo sources
if odoo_sources: if odoo_sources:
_logger.info("Binding Odoo sources at %s", odoo_sources) _logger.info("Binding Odoo sources at %s", odoo_sources)
if odoo_type in (ODOO_10, ODOO_11, ODOO_13, ODOO_15): if odoo_type in (ODOO_10, ODOO_11, ODOO_13, ODOO_15):
# Image 11 uses python 3.5 if based on xenial, or 3.6 for bionic
# 13 uses bionic
if odoo_type == ODOO_10:
pythons = ("python2.7",)
elif odoo_type == ODOO_11:
pythons = ("python3.5", "python3.6")
elif odoo_type == ODOO_13:
pythons = ("python3.8",)
elif odoo_type == ODOO_15:
pythons = ("python3.9",)
else:
pythons = ("python3.9",)
for python in pythons: for python in pythons:
mounts.append( mounts.append(
Mount( Mount(
......
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