def revert_snapshot(name, snap_name, runas=None):
 name = _sdecode(name)
 snap_name = _validate_snap_name(name, snap_name, runas=runas)
 args = [name, '--id', snap_name]
 return prlctl('snapshot-switch', args, runas=runas)

def revert_snapshot ( name , snap_name , runas = None ) : name = _sdecode ( name ) snap_name = _validate_snap_name ( name , snap_name , runas = runas ) args = [ name , '--id' , snap_name ] return prlctl ( 'snapshot-switch' , args , runas = runas )
revert a vm to a snapshot .