]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: fix drive-group issue 51210/head
authorMohan Sharma <mohan7427@gmail.com>
Tue, 27 Dec 2022 06:01:04 +0000 (11:31 +0530)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 25 Apr 2023 08:10:31 +0000 (10:10 +0200)
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 <mohan7427@gmail.com>
(cherry picked from commit 7602a99f7a1308c684a7c1d619bb6d9f09c79af9)

src/ceph-volume/ceph_volume/drive_group/main.py

index 9e93bc759e70b1fc4bb6236d818d2b6a4ef29577..9626089c86058a5033021ea4367a0bff61406a8d 100644 (file)
@@ -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()