ceph-volume: fix TypeError exception when setting osds-per-device > 1

osds-per-device needs to be passed to run_command as a string.
Otherwise, expandvars method will try to iterate over an integer.

Signed-off-by: Maciej Naruszewicz <maciej.naruszewicz@intel.com>
pull/3272/head
Maciej Naruszewicz 2018-10-19 22:40:36 +02:00 committed by Sébastien Han
parent 22aed97266
commit 252d0f9cf2
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ def batch(module, container_image):
cmd.append('--dmcrypt')
if osds_per_device > 1:
cmd.extend(['--osds-per-device', osds_per_device])
cmd.extend(['--osds-per-device', str(osds_per_device)])
if objectstore == 'filestore':
cmd.extend(['--journal-size', journal_size])