def get_injected_files(personality):
    """Create a list of injected files from the personality attribute.

    At this time, injected_files must be formatted as a list of
    (file_path, file_content) pairs for compatibility with the
    underlying compute service.
    """
    injected_files = []
    for item in personality:
        injected_files.append((item['path'], item['contents']))
    return injected_files