Skip to content

Commit

Permalink
ceph-volume: fix drive-group issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mohan7427 authored and guits committed Mar 29, 2023
1 parent 579510d commit 7602a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ceph-volume/ceph_volume/drive_group/main.py
Expand Up @@ -78,7 +78,7 @@ def main(self):
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()

Expand Down

0 comments on commit 7602a99

Please sign in to comment.