def ci_interset()

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


def ci_interset(a:Union[List[str], Set[str]], b:Union[List[str], Set[str]]) -> Set[str]:
    r = set()
    a = ci_set(a)
    b = ci_set(b)
    for c in a:
        if ci_in(c, b):
            r.add(c)
    return r