summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2024-05-15 13:38:21 +0100
committerDaniil Baturin <daniil@baturin.org>2024-05-15 13:38:21 +0100
commitcc0573a78aac4d6ac4479fdf951d151a36b88cbc (patch)
tree429920afa787febca9defbd90c69fdf4e6bc4a6a
parentc3c81dcc0a79c1ab1bc9a13c62565a69ee5550fa (diff)
downloadvyos-1x-cc0573a78aac4d6ac4479fdf951d151a36b88cbc.tar.gz
vyos-1x-cc0573a78aac4d6ac4479fdf951d151a36b88cbc.zip
op mode: T6339: display build flavor and comment in "show version"
-rwxr-xr-xsrc/op_mode/version.py6
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}}