From: Mohan Sharma Date: Tue, 27 Dec 2022 06:01:04 +0000 (+0530) Subject: ceph-volume: fix drive-group issue X-Git-Tag: v18.1.0~63^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9d2c2a1b8f4896741461670d236ea9ab76e3fb71;p=ceph.git ceph-volume: fix drive-group issue The drive-group expects the batch_args to be a string, however in the current version it is passed as a list of one element, thus calling the first item of the list solves the issue. Fixes: https://tracker.ceph.com/issues/59203 Signed-off-by: Mohan Sharma (cherry picked from commit 7602a99f7a1308c684a7c1d619bb6d9f09c79af9) --- diff --git a/src/ceph-volume/ceph_volume/drive_group/main.py b/src/ceph-volume/ceph_volume/drive_group/main.py index 9e93bc759e7..9626089c860 100644 --- a/src/ceph-volume/ceph_volume/drive_group/main.py +++ b/src/ceph-volume/ceph_volume/drive_group/main.py @@ -78,7 +78,7 @@ class Deploy(object): print(cmd) else: logger.info('Running ceph-volume command: {}'.format(cmd)) - batch_args = cmd.split(' ')[2:] + batch_args = cmd[0].split(' ')[2:] b = Batch(batch_args) b.main()