diff options
author | John Estabrook <jestabro@vyos.io> | 2022-03-08 11:46:18 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-03-08 11:46:18 -0600 |
commit | 534f677d36285863decb2cdff179687b4fd690cb (patch) | |
tree | b79abe885d3b5392f8b2fa434cd4816833eea581 /src/helpers | |
parent | f8b7846ba3e008aaf0cde77e00e60d9af7b61446 (diff) | |
download | vyos-1x-534f677d36285863decb2cdff179687b4fd690cb.tar.gz vyos-1x-534f677d36285863decb2cdff179687b4fd690cb.zip |
component_version: T4291: consolidate read/write functions
Diffstat (limited to 'src/helpers')
-rwxr-xr-x | src/helpers/system-versions-foot.py | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/helpers/system-versions-foot.py b/src/helpers/system-versions-foot.py index 2aa687221..b44408542 100755 --- a/src/helpers/system-versions-foot.py +++ b/src/helpers/system-versions-foot.py @@ -16,24 +16,13 @@ # along with this library. If not, see <http://www.gnu.org/licenses/>. import sys -import vyos.formatversions as formatversions -import vyos.systemversions as systemversions import vyos.defaults -import vyos.version - -sys_versions = systemversions.get_system_component_version() - -component_string = formatversions.format_versions_string(sys_versions) - -os_version_string = vyos.version.get_version() +from vyos.component_version import write_footer sys.stdout.write("\n\n") if vyos.defaults.cfg_vintage == 'vyos': - formatversions.write_vyos_versions_foot(None, component_string, - os_version_string) + write_footer(None, vintage='vyos') elif vyos.defaults.cfg_vintage == 'vyatta': - formatversions.write_vyatta_versions_foot(None, component_string, - os_version_string) + write_footer(None, vintage='vyatta') else: - formatversions.write_vyatta_versions_foot(None, component_string, - os_version_string) + write_footer(None, vintage='vyatta') |