From 77aaa92d2fa78a00078b3e2dffcbe02f934a037a Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 15 May 2024 13:38:21 +0100 Subject: op mode: T6339: display build flavor and comment in "show version" (cherry picked from commit cc0573a78aac4d6ac4479fdf951d151a36b88cbc) --- src/op_mode/version.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/op_mode') 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}} -- cgit v1.2.3