def list_snapshots(config='root'):
 try:
  snapshots = snapper.ListSnapshots(config)
  return [_snapshot_to_data(s) for s in snapshots]
 except dbus.DBusException as exc:
  raise CommandExecutionError('Error encountered while listing snapshots: {0}'.format(_dbus_exception_to_reason(exc, locals())))

def list_snapshots ( config = 'root' ) : try : snapshots = snapper . ListSnapshots ( config ) return [ _snapshot_to_data ( s ) for s in snapshots ] except dbus . DBusException as exc : raise CommandExecutionError ( 'Error encountered while listing snapshots: {0}' . format ( _dbus_exception_to_reason ( exc , locals ( ) ) ) )
list available snapshots for certain vm or for all .