mirror of https://github.com/ceph/ceph-ansible.git
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
parent
22aed97266
commit
252d0f9cf2
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue