Revision 246e180a lib/cmdlib.py

b/lib/cmdlib.py
1129 1129
  """Logical unit for querying nodes.
1130 1130

  
1131 1131
  """
1132
  _OP_REQP = ["output_fields", "nodes"]
1132
  _OP_REQP = ["output_fields", "names"]
1133 1133

  
1134 1134
  def CheckPrereq(self):
1135 1135
    """Check prerequisites.
......
1146 1146
                       dynamic=self.dynamic_fields,
1147 1147
                       selected=self.op.output_fields)
1148 1148

  
1149
    self.wanted_nodes = _GetWantedNodes(self, self.op.nodes)
1149
    self.wanted = _GetWantedNodes(self, self.op.names)
1150 1150

  
1151 1151
  def Exec(self, feedback_fn):
1152 1152
    """Computes the list of nodes and their attributes.
1153 1153

  
1154 1154
    """
1155
    nodenames = self.wanted_nodes
1155
    nodenames = self.wanted
1156 1156
    nodelist = [self.cfg.GetNodeInfo(name) for name in nodenames]
1157 1157

  
1158 1158
    # begin data gathering

Also available in: Unified diff