mirror of
https://github.com/runcitadel/core.git
synced 2024-11-12 00:39:53 +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])
|
container, permissions()[permission])
|
||||||
else:
|
else:
|
||||||
print("Warning: container {} of app {} defines unknown permission {}".format(container['name'], app['metadata']['name'], permission))
|
print("Warning: container {} of app {} defines unknown permission {}".format(container['name'], app['metadata']['name'], permission))
|
||||||
del container['permissions']
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
def convertContainersToServices(app: dict):
|
def convertContainersToServices(app: dict):
|
||||||
app['services'] = {}
|
app['services'] = {}
|
||||||
for container in app['containers']:
|
for container in app['containers']:
|
||||||
|
if 'permissions' in container:
|
||||||
|
del container['permissions']
|
||||||
app['services'][container['name']] = container
|
app['services'][container['name']] = container
|
||||||
del app['services'][container['name']]['name']
|
del app['services'][container['name']]['name']
|
||||||
del app['containers']
|
del app['containers']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user