'Returns a set of all local devices in all EC policies.'

def get_local_devices(self):

    policy2devices = self.get_policy2devices()
    return reduce(set.union, (set((d['device'] for d in devices)) for devices in policy2devices.values()), set())
