Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @contextlib.contextmanager
- def mutated_migration_context(self):
- original = instance.numa_topology
- self.apply_migration_context()
- try:
- yield
- finally:
- instance.numa_topology = original
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement