Revision 09037780 lib/luxi.py

b/lib/luxi.py
34 34
import time
35 35
import errno
36 36
import logging
37
import warnings
38 37

  
39 38
from ganeti import serializer
40 39
from ganeti import constants
......
65 64
REQ_QUERY_CONFIG_VALUES = "QueryConfigValues"
66 65
REQ_QUERY_CLUSTER_INFO = "QueryClusterInfo"
67 66
REQ_QUERY_TAGS = "QueryTags"
68
REQ_QUERY_LOCKS = "QueryLocks"
69 67
REQ_QUEUE_SET_DRAIN_FLAG = "SetDrainFlag"
70 68
REQ_SET_WATCHER_PAUSE = "SetWatcherPause"
71 69

  
......
551 549

  
552 550
  def QueryTags(self, kind, name):
553 551
    return self.CallMethod(REQ_QUERY_TAGS, (kind, name))
554

  
555
  def QueryLocks(self, fields, sync):
556
    warnings.warn("This LUXI call is deprecated and will be removed, use"
557
                  " Query(\"%s\", ...) instead" % constants.QR_LOCK)
558
    return self.CallMethod(REQ_QUERY_LOCKS, (fields, sync))

Also available in: Unified diff