diff options
author | Daniil Baturin <daniil@baturin.org> | 2024-05-15 13:38:21 +0100 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-05-16 05:15:37 +0000 |
commit | 77aaa92d2fa78a00078b3e2dffcbe02f934a037a (patch) | |
tree | b63cc095d7690afe2d38b8969f0f7ec5758d807e /src/op_mode | |
parent | 8c98231d62cd033800707c05c98a18356d20f338 (diff) | |
download | vyos-1x-77aaa92d2fa78a00078b3e2dffcbe02f934a037a.tar.gz vyos-1x-77aaa92d2fa78a00078b3e2dffcbe02f934a037a.zip |
op mode: T6339: display build flavor and comment in "show version"
(cherry picked from commit cc0573a78aac4d6ac4479fdf951d151a36b88cbc)
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/version.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/op_mode/version.py b/src/op_mode/version.py index ad0293aca..09d69ad1d 100755 --- a/src/op_mode/version.py +++ b/src/op_mode/version.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2016-2022 VyOS maintainers and contributors +# Copyright (C) 2016-2024 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -30,11 +30,15 @@ from jinja2 import Template version_output_tmpl = """ Version: VyOS {{version}} Release train: {{release_train}} +Release flavor: {{flavor}} Built by: {{built_by}} Built on: {{built_on}} Build UUID: {{build_uuid}} Build commit ID: {{build_git}} +{%- if build_comment %} +Build comment: {{build_comment}} +{% endif %} Architecture: {{system_arch}} Boot via: {{boot_via}} |