def _merge_yaml(ret, data):
    '''
    Merge two yaml dicts together at the service:blacklist and service:whitelist level
    '''
    if 'service' not in ret:
        ret['service'] = {}
    for topkey in ('blacklist', 'whitelist'):
        if data.get('service', {}) in topkey:
            if topkey not in ret['service']:
                ret['service'][topkey] = []
            for key, val in data['service'][topkey].iteritems():
                ret['service'][topkey].append({key: val})
    return ret
dataset/ETHPy150Open HubbleStack/Nova/hubblestack_nova/service.py/_merge_yaml/swapped operands of `in`