+ if self.osd_id_claims:
+ cmd += " --osd-id {}".format(str(self.osd_id_claims[0]))
+ if self.preview:
+ # Like every horrible hack, this has sideffects on other features.
+ # In this case, 'lvm prepare' has neither a '--report' nor a '--format json' option
+ # which essentially doesn't allow for a proper previews here.
+ # Fall back to lvm batch in order to get a preview.
+ return f"lvm batch --no-auto {' '.join(data_devices)} --report --format json"