[Trivial fix]Remove unnecessary slash

This is to remove the unncessary slash when the line doesn't
exceed the length of 79, to make the code more readable.

Change-Id: I53fdb56f001837e833df46cb86cdaab9c710ac99
This commit is contained in:
zhufl 2019-05-06 17:46:53 +08:00
parent 9e9e31ed2c
commit 4dc412a23b

View File

@ -162,8 +162,7 @@ def extract_disk_info(ct, dev, name, use_udev):
kwargs['partition_label'] = name kwargs['partition_label'] = name
kwargs['device'] = dev.find_parent('block').device_node kwargs['device'] = dev.find_parent('block').device_node
kwargs['partition'] = dev.device_node kwargs['partition'] = dev.device_node
kwargs['partition_num'] = \ kwargs['partition_num'] = re.sub(r'.*[^\d]', '', dev.device_node)
re.sub(r'.*[^\d]', '', dev.device_node)
if is_dev_matched_by_name(dev, name, 'strict', use_udev): if is_dev_matched_by_name(dev, name, 'strict', use_udev):
kwargs['external_journal'] = False kwargs['external_journal'] = False
# NOTE(jeffrey4l): this is only used for bootstrap osd stage and # NOTE(jeffrey4l): this is only used for bootstrap osd stage and