def ingest_containers(self, containers=None):
        """
        Transform the YAML into a dict with normalized keys
        """
        containers = containers or self.stream or {}

        output_containers = []

        for container_name, definition in containers.items():
            container = definition.copy()
            container['name'] = container_name
            output_containers.append(container)

        return output_containers
def ingest_containers ( self , containers = None ) : containers = containers or self . stream or { } output_containers = [ ] for container_name , definition in containers . items ( ) : container = definition . copy ( ) container [ 'name' ] = container_name output_containers . append ( container ) return output_containers
Transform the YAML into a dict with normalized keys