mirror of
https://github.com/runcitadel/core.git
synced 2024-12-27 23:25:41 +00:00
This could fix it
This commit is contained in:
parent
1575b55f64
commit
3654e3cde2
|
@ -16,12 +16,13 @@ def convertContainerPermissions(app):
|
|||
container, permissions()[permission])
|
||||
else:
|
||||
print("Warning: container {} of app {} defines unknown permission {}".format(container['name'], app['metadata']['name'], permission))
|
||||
del container['permissions']
|
||||
return app
|
||||
|
||||
def convertContainersToServices(app: dict):
|
||||
app['services'] = {}
|
||||
for container in app['containers']:
|
||||
if 'permissions' in container:
|
||||
del container['permissions']
|
||||
app['services'][container['name']] = container
|
||||
del app['services'][container['name']]['name']
|
||||
del app['containers']
|
||||
|
|
Loading…
Reference in New Issue
Block a user