summaryrefslogtreecommitdiff
path: root/python/vyos/component_versions.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-05-18 17:41:35 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-05-18 17:41:35 +0100
commit4d0c5c848fda305055b71abf63ccd18478586694 (patch)
tree5851f1adf33c18f94a16c71f8b01175e0d43e428 /python/vyos/component_versions.py
parent1e4dd009d711f24c504e0a6b61c5aefd37dcd6ce (diff)
downloadvyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.tar.gz
vyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.zip
flake8: T2475: fix a number of issue reported by flake8
Diffstat (limited to 'python/vyos/component_versions.py')
-rw-r--r--python/vyos/component_versions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/component_versions.py b/python/vyos/component_versions.py
index ec54a1576..90b458aae 100644
--- a/python/vyos/component_versions.py
+++ b/python/vyos/component_versions.py
@@ -51,7 +51,7 @@ def get_component_versions_from_file(config_file_name='/opt/vyatta/etc/config/co
"""
f = open(config_file_name, 'r')
for line_in_config in f:
- component_version = return_version(line_in_config)
+ component_version = get_component_version(line_in_config)
if component_version:
return component_version
raise ValueError("no config string in file:", config_file_name)