mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 13:14:17 +02:00
[web] refactoring: using the environment definition file URL from bauh-files
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user