def get_envs(desc, field):
    """Returns a list of envs for the given field."""
    header = ['', '# The %s configurations.' % desc]
    if not field:
        return header
    return header + field.get('envs', [])