Skip to content

Commit eaea2df

Browse files
author
Nikolai Lambrov
committed
Fix typo in group directory check in VmUpdater
- Corrected the conditional check for group name in the VmUpdater class to use 'not in' instead of 'not in str', improving code clarity and correctness.
1 parent d457b6a commit eaea2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frameworks/vm_manager/vm_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def _move_to_group_dir(self) -> None:
319319
Move VM to group directory and move remaining files from old directory.
320320
"""
321321
group_name = self.vm.get_group_name()
322-
if group_name and not group_name in str(self.vm_dir):
322+
if group_name and group_name not in str(self.vm_dir):
323323
group_dir = Path(self.vm.info.default_vm_dir) / group_name
324324
group_dir.mkdir(parents=True, exist_ok=True)
325325
self.vm.move_to(str(group_dir), move_remaining_files=True, delete_old_directory=True)

0 commit comments

Comments
 (0)