def rollback(gandi, resource, background):
    """ Rollback a disk from a snapshot. """
    result = gandi.disk.rollback(resource, background)

    if background:
        gandi.pretty_echo(result)
    return result
Rollback a disk from a snapshot.