summaryrefslogtreecommitdiff
path: root/src/op_mode/version.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-05-16 10:11:25 +0200
committerGitHub <noreply@github.com>2024-05-16 10:11:25 +0200
commitd9f1c7c17a850388bbe2a3e430ee206e4d149c29 (patch)
tree73fd06d0e5b2824309a7152efe386f3afd2d2431 /src/op_mode/version.py
parentce2facdb0e3d5a2f226bb9edc946cbf0ea4f06b9 (diff)
parent77aaa92d2fa78a00078b3e2dffcbe02f934a037a (diff)
downloadvyos-1x-d9f1c7c17a850388bbe2a3e430ee206e4d149c29.tar.gz
vyos-1x-d9f1c7c17a850388bbe2a3e430ee206e4d149c29.zip
Merge pull request #3459 from vyos/mergify/bp/sagitta/pr-3456
op mode: T6339: display build flavor and comment in "show version" (backport #3456)
Diffstat (limited to 'src/op_mode/version.py')
-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}}