INNER CODE UNIT · Python

__init__

gyptazy/ProxLB · proxlb/models/balancing.py:47

    def __init__(self, proxmox_api: any, proxlb_data: Dict[str, Any]):
        """
        Initializes the Balancing class with the provided ProxLB data.

        Args:
            proxmox_api (object): The Proxmox API client instance used to interact with the Proxmox cluster.
            proxlb_data (dict): A dictionary containing data related to the ProxLB load balancing configuration.
        """
        def chunk_dict(data, size):
            """
            Splits a dictionary into chunks of a specified size.
            Args:
                data (dict): The dictionary to be split into chunks.
                size (int): The size of each chunk.
            Yields:
                dict: A chunk of the original dictionary with the specified size.
            """
            logger.debug("Starting: chunk_dict.")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…