Revision d01ae714 lib/confd/querylib.py

b/lib/confd/querylib.py
208 208

  
209 209
    return status, answer
210 210

  
211

  
212
class InstancesIpsQuery(ConfdQuery):
213
  """A query for instances IPs.
214

  
215
  It returns the list of instances IPs.
216

  
217
  """
218
  def Exec(self, query):
219
    """InstancesIpsQuery main execution.
220

  
221
    """
222
    if query is None:
223
      status = constants.CONFD_REPL_STATUS_OK
224
      answer = self.reader.GetInstancesIps()
225
    else:
226
      status = constants.CONFD_REPL_STATUS_ERROR
227
      answer = "non-empty instances IPs query"
228

  
229
    return status, answer
230

  

Also available in: Unified diff