]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: fix drive-group issue 49586/head
authorMohan Sharma <mohan7427@gmail.com>
Tue, 27 Dec 2022 06:01:04 +0000 (11:31 +0530)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 29 Mar 2023 07:48:03 +0000 (09:48 +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>
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()