def METHOD_NAME(self, maintenance_task):
    if not maintenance_task.is_status_error:
        return 'N/A'
    if not maintenance_task.can_do_retry:
        return 'N/A'
    url_retry = "/admin/maintenance/hostmigrate/{}/retry/".format(
        maintenance_task.id
    )
    html_retry = ("<a title='Retry' class='btn btn-info' "
                  "href='{}'>Retry</a>").format(url_retry)
    url_rollback = "/admin/maintenance/hostmigrate/{}/rollback/".format(
        maintenance_task.id
    )
    html_rollback = ("<a title='Rollback' class='btn btn-danger' "
                     "href='{}'>Rollback</a>").format(url_rollback)
    spaces = '&nbsp' * 3
    html_content = '{}{}{}'.format(html_retry, spaces, html_rollback)
    return format_html(html_content)