Revision 016d04b3 lib/objects.py

b/lib/objects.py
285 285

  
286 286
class ConfigData(ConfigObject):
287 287
  """Top-level config object."""
288
  __slots__ = ["version", "cluster", "nodes", "instances", "serial_no"] + \
289
              _TIMESTAMPS
288
  __slots__ = (["version", "cluster", "nodes", "instances", "serial_no"] +
289
               _TIMESTAMPS)
290 290

  
291 291
  def ToDict(self):
292 292
    """Custom function for top-level config data.
......
828 828

  
829 829
    # default_hypervisor is just the first enabled one in 2.1
830 830
    if self.default_hypervisor is not None:
831
      self.enabled_hypervisors = [self.default_hypervisor] + \
831
      self.enabled_hypervisors = ([self.default_hypervisor] +
832 832
        [hvname for hvname in self.enabled_hypervisors
833
         if hvname != self.default_hypervisor]
833
         if hvname != self.default_hypervisor])
834 834
      self.default_hypervisor = None
835 835

  
836

  
837 836
  def ToDict(self):
838 837
    """Custom function for cluster.
839 838

  

Also available in: Unified diff