def __valid_ext(self, ext):
        '''
        Check to see if the on demand external pillar is allowed
        '''
        if not isinstance(ext, dict):
            return {}
        valid = set(('libvirt', 'virtkey'))
        if any(valid not in key for key in ext):
            return {}
        return ext
dataset/ETHPy150Open saltstack/salt/salt/pillar/__init__.py/Pillar.__valid_ext/swapped operands of `not in`