with_lsm = self.mgr.get_module_option('device_enhanced_scan')
inventory_args = ['--', 'inventory',
- '--format=json',
+ '--format=json-pretty',
'--filter-for-batch']
if with_lsm:
inventory_args.insert(-1, "--with-lsm")
assert _run_cephadm.mock_calls == [
mock.call('test', 'osd', 'ceph-volume',
- ['--', 'inventory', '--format=json', '--filter-for-batch'], image='',
+ ['--', 'inventory', '--format=json-pretty', '--filter-for-batch'], image='',
no_fsid=False),
mock.call('test', 'osd', 'ceph-volume',
- ['--', 'inventory', '--format=json'], image='',
+ ['--', 'inventory', '--format=json-pretty'], image='',
no_fsid=False),
]