Skip to content

Commit cbaa713

Browse files
josemacassanclaude
andcommitted
fix: use module constant for default disk serial command
Fixes B008 ruff violation by using _DEFAULT_DISK_SERIAL_COMMAND instead of calling shlex.split() in function argument default. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Jose Manuel Castano <joscasta@redhat.com>
1 parent 7a56b07 commit cbaa713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utilities/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ def run_command_on_vm_and_check_output(
687687
)
688688

689689

690-
def assert_disk_serial(vm, command=shlex.split("sudo ls /dev/disk/by-id")):
690+
def assert_disk_serial(vm, command=_DEFAULT_DISK_SERIAL_COMMAND):
691691
assert (
692692
HOTPLUG_DISK_SERIAL
693693
in run_ssh_commands(host=vm.ssh_exec, commands=command, wait_timeout=TIMEOUT_2MIN, sleep=TIMEOUT_5SEC)[0]

0 commit comments

Comments
 (0)