Revision 0bc8432b lib/confd/querylib.py

b/lib/confd/querylib.py
70 70

  
71 71
  """
72 72
  def Exec(self, query):
73
    """EmptyQuery main execution
73
    """PingQuery main execution.
74 74

  
75 75
    """
76 76
    if query is None:
......
84 84

  
85 85

  
86 86
class NodeRoleQuery(ConfdQuery):
87
  """An empty confd query.
87
  """A query for the role of a node.
88 88

  
89
  It will return success on an empty argument, and an error on any other argument.
89
  It will return one of CONFD_NODE_ROLE_*, or an error for non-existing nodes.
90 90

  
91 91
  """
92 92
  def Exec(self, query):
......
116 116

  
117 117

  
118 118
class InstanceIpToNodePrimaryIpQuery(ConfdQuery):
119
  """An empty confd query.
119
  """A query for the location of an instance's ip.
120 120

  
121
  It will return success on an empty argument, and an error on any other argument.
121
  It returns the primary ip of the node hosting the instance having the
122
  requested ip address, or an error if no such address is known.
122 123

  
123 124
  """
124 125
  def Exec(self, query):
125
    """EmptyQuery main execution
126
    """InstanceIpToNodePrimaryIpQuery main execution.
126 127

  
127 128
    """
128 129
    instance_ip = query

Also available in: Unified diff