

def ex_wait_for_state(self, state, func, poll_interval=2, timeout=60, *args, **kwargs):
    '\n        Wait for the function which returns a instance\n        with field status to match\n\n        Keep polling func until one of the desired states is matched\n\n        :param state: Either the desired state (`str`) or a `list` of states\n        :type  state: ``str`` or ``list``\n\n        :param  func: The function to call, e.g. ex_get_vlan\n        :type   func: ``function``\n\n        :param  poll_interval: The number of seconds to wait between checks\n        :type   poll_interval: `int`\n\n        :param  timeout: The total number of seconds to wait to reach a state\n        :type   timeout: `int`\n\n        :param  args: The arguments for func\n        :type   args: Positional arguments\n\n        :param  kwargs: The arguments for func\n        :type   kwargs: Keyword arguments\n        '
    return self.connection.wait_for_state(state, func, poll_interval, timeout, *poll_interval, **kwargs)

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_wait_for_state/VarMisuse@46/352 `args`->`poll_interval`