From 231125be0cf98d78ec089a3763963237982223ee Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 1 Jul 2022 22:13:16 +0200 Subject: [PATCH] remove application service version --- src/risotto/image.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/risotto/image.py b/src/risotto/image.py index d57741b..e6a73cf 100644 --- a/src/risotto/image.py +++ b/src/risotto/image.py @@ -23,22 +23,17 @@ class ModuleCfg(): def list_applications() -> dict: """ - {: applicationservice// + {: seed/ """ dataset_directory = RISOTTO_CONFIG['directories']['dataset'] applications = {} - distrib_dir = join(dataset_directory, 'applicationservice') - for release in listdir(distrib_dir): - release_dir = join(distrib_dir, release) - if not isdir(release_dir): + for applicationservice in listdir(dataset_directory): + applicationservice_dir = join(dataset_directory, applicationservice) + if not isdir(applicationservice_dir): continue - for applicationservice in listdir(release_dir): - applicationservice_dir = join(release_dir, applicationservice) - if not isdir(applicationservice_dir): - continue - if applicationservice in applications: - raise Exception(f'multi applicationservice: {applicationservice} ({applicationservice_dir} <=> {applications[applicationservice]})') - applications[applicationservice] = applicationservice_dir + if applicationservice in applications: + raise Exception(f'multi applicationservice: {applicationservice} ({applicationservice_dir} <=> {applications[applicationservice]})') + applications[applicationservice] = applicationservice_dir return applications