

def _to_anti_affinity_rules(self, object):
    rules = []
    for element in findall(object, 'antiAffinityRule', TYPES_URN):
        rules.append(self._to_anti_affinity_rule(element))
    return rules

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver._to_anti_affinity_rules/original