aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-03-25 22:25:39 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-03-25 22:25:41 +0800
commitd2ad5f290aad90223331a622a0f546396a2cf611 (patch)
tree58a149584bcddd862c3383cc8271f0c482bf0401 /docker
parentbd5d38ef3c4514783231b15550ad4d02d066da35 (diff)
downloadkolla-d2ad5f290aad90223331a622a0f546396a2cf611.tar.gz
kolla-d2ad5f290aad90223331a622a0f546396a2cf611.zip
Remove meaningless char in regexp of find_disks.py file
the $ char is useless and not needed. TrivialFix Change-Id: I18df48ca86badadf6ec18757c17ed32222ead30a
Diffstat (limited to 'docker')
-rw-r--r--docker/kolla-toolbox/find_disks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/kolla-toolbox/find_disks.py b/docker/kolla-toolbox/find_disks.py
index e72dcc6fb..dcb6e812b 100644
--- a/docker/kolla-toolbox/find_disks.py
+++ b/docker/kolla-toolbox/find_disks.py
@@ -99,7 +99,7 @@ def extract_disk_info(ct, dev, name):
kwargs['device'] = dev.find_parent('block').device_node
kwargs['partition'] = dev.device_node
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'):
kwargs['external_journal'] = False
kwargs['journal'] = dev.device_node[:-1] + '2'
@@ -113,7 +113,7 @@ def extract_disk_info(ct, dev, name):
kwargs['journal_device'] = \
journal.find_parent('block').device_node
kwargs['journal_num'] = \
- re.sub(r'.*[^\d$]', '', journal.device_node)
+ re.sub(r'.*[^\d]', '', journal.device_node)
break
if 'journal' not in kwargs:
# NOTE(SamYaple): Journal not found, not returning info