Revision 066f465d lib/objects.py

b/lib/objects.py
811 811
    if self.default_bridge is not None:
812 812
      self.default_bridge = None
813 813

  
814
    # default_hypervisor is just the first enabled one in 2.1
815
    if self.default_hypervisor is not None:
816
      self.enabled_hypervisors = [self.default_hypervisor] + \
817
        [hvname for hvname in self.enabled_hypervisors
818
         if hvname != self.default_hypervisor]
819
      self.default_hypervisor = None
820

  
821

  
814 822
  def ToDict(self):
815 823
    """Custom function for cluster.
816 824

  

Also available in: Unified diff