def ci_in()

in hpcpack-autoscaler/src/cyclecloud-hpcpack/commonutil.py [0:0]


def ci_in(a:str, b:Union[List[str], Set[str], Dict[str, Any]]) -> bool:
    if isinstance(b, dict):
        b = b.keys()
    for c in b:
        if ci_equals(a, c):
            return True
    return False