We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e5c941 commit 2dd62f1Copy full SHA for 2dd62f1
1 file changed
RAMP/module_metadata.py
@@ -115,10 +115,10 @@ def _read_key_value_file(path):
115
def get_curr_os():
116
global RLEC_OS_MAP
117
if os.path.exists(DEVCONTAINER_PATH):
118
- devcontainer_os = _read_key_value_file(DEVCONTAINER_PATH).get("DISTRO")
119
- if devcontainer_os:
120
- return devcontainer_os
121
-
+ devcontainer_os = _read_key_value_file(DEVCONTAINER_PATH)["DISTRO"]
+ return (devcontainer_os
+ .replace("focal", "ubuntu20")
+ .replace("jammy", "ubuntu22"))
122
curr_os = '%s%s' % (distro.id(), distro.version_parts()[0])
123
rlec_os = RLEC_OS_MAP.get(curr_os, curr_os)
124
return rlec_os
0 commit comments