[web] refactoring: using the environment definition file URL from bauh-files

This commit is contained in:
Vinicius Moreira
2021-12-13 16:03:36 -03:00
parent 60217e9173
commit 6d7a2ff25f
2 changed files with 6 additions and 1 deletions

View File

@@ -304,6 +304,11 @@ class EnvironmentUpdater:
try:
settings = yaml.safe_load(res.content)
nodejs_settings = settings.get('nodejs')
if nodejs_settings:
nodejs_settings['url'] = nodejs_settings['url'].format(version=nodejs_settings['version'])
except yaml.YAMLError:
self.logger.error(f'Could not parse environment settings: {res.text}')
self._finish_task_download_settings()