This could fix it

This commit is contained in:
Aaron Dewes 2021-11-06 21:56:38 +00:00
parent 1575b55f64
commit 3654e3cde2

View File

@ -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']