From 150a3d7d9e31c35ae6f4ebcbfcd2bbab38d2ba67 Mon Sep 17 00:00:00 2001 From: Sam Lang Date: Fri, 1 Feb 2013 10:53:47 -0600 Subject: [PATCH] misc: Don't include existing partitions in devs We don't want to include /dev/sda1, etc. in the list of devices to use. Signed-off-by: Sam Lang --- teuthology/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index fd062c4e6211..5a775a4a07fd 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -396,7 +396,7 @@ def get_scratch_devices(remote): devs = file_data.split() except: r = remote.run( - args=['ls', run.Raw('/dev/[sv]d*')], + args=['ls', run.Raw('/dev/[sv]d?')], stdout=StringIO() ) devs = r.stdout.getvalue().split('\n') -- 2.47.3