forked from stove/risotto
remove application service version
This commit is contained in:
parent
6b65f80919
commit
231125be0c
1 changed files with 7 additions and 12 deletions
|
@ -23,22 +23,17 @@ class ModuleCfg():
|
|||
|
||||
def list_applications() -> dict:
|
||||
"""
|
||||
{<applicationservice>: applicationservice/<release>/<applicationservice>
|
||||
{<applicationservice>: seed/<applicationservice>
|
||||
"""
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue