Revision b60ae2ca

b/lib/objects.py
584 584
    """Custom function for cluster.
585 585

  
586 586
    """
587
    mydict = super(TaggableObject, self).ToDict()
587
    mydict = super(Cluster, self).ToDict()
588 588
    mydict["tcpudp_port_pool"] = list(self.tcpudp_port_pool)
589 589
    return mydict
590 590

  
......
593 593
    """Custom function for cluster.
594 594

  
595 595
    """
596
    obj = super(TaggableObject, cls).FromDict(val)
596
    obj = super(Cluster, cls).FromDict(val)
597 597
    if not isinstance(obj.tcpudp_port_pool, set):
598 598
      obj.tcpudp_port_pool = set(obj.tcpudp_port_pool)
599 599
    return obj

Also available in: Unified diff