summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorzhufl <zhu.fanglei@zte.com.cn>2019-05-06 17:46:53 +0800
committerzhufl <zhu.fanglei@zte.com.cn>2019-05-06 17:47:15 +0800
commit4dc412a23bb74222f8737eccd3a561e1795847bd (patch)
tree98bd11c471fc1939c6c5485a3cc68efc6a09bd6d /docker
parent9e9e31ed2c671d7547354708bb8decc05c737ecd (diff)
downloadkolla-4dc412a23bb74222f8737eccd3a561e1795847bd.tar.gz
kolla-4dc412a23bb74222f8737eccd3a561e1795847bd.zip
[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
Diffstat (limited to 'docker')
-rw-r--r--docker/kolla-toolbox/find_disks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/docker/kolla-toolbox/find_disks.py b/docker/kolla-toolbox/find_disks.py
index f8175eae0..405852f0b 100644
--- a/docker/kolla-toolbox/find_disks.py
+++ b/docker/kolla-toolbox/find_disks.py
@@ -162,8 +162,7 @@ def extract_disk_info(ct, dev, name, use_udev):
kwargs['partition_label'] = name
kwargs['device'] = dev.find_parent('block').device_node
kwargs['partition'] = dev.device_node
- kwargs['partition_num'] = \
- re.sub(r'.*[^\d]', '', dev.device_node)
+ kwargs['partition_num'] = re.sub(r'.*[^\d]', '', dev.device_node)
if is_dev_matched_by_name(dev, name, 'strict', use_udev):
kwargs['external_journal'] = False
# NOTE(jeffrey4l): this is only used for bootstrap osd stage and