From 0d6ce424054a89ccaa785eb0ab4a16507debe7c3 Mon Sep 17 00:00:00 2001 From: tamil Date: Thu, 26 Jul 2012 13:48:11 -0700 Subject: [PATCH] Fixed the code to pass 'yes' during mkfs Signed-off-by: tamil --- teuthology/task/ceph.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 3ef6573af1b04..9be7fc53ed288 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -635,8 +635,6 @@ def cluster(ctx, config): if fs == 'ext4' or fs == 'ext3': if mount_options is None: mount_options = ['noatime','user_xattr'] - if mkfs_options is None: - mkfs_options = ['-y'] if mount_options is None: mount_options = [] @@ -651,7 +649,7 @@ def cluster(ctx, config): 'apt-get', 'install', '-y', package ] ) - remote.run(args=['sudo'] + mkfs + [dev]) + remote.run(args= ['yes', run.Raw('|')] + ['sudo'] + mkfs + [dev]) log.info('mount %s on %s -o %s' % (dev, remote, ','.join(mount_options))) remote.run( -- 2.39.5