summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-16 07:14:55 +0200
committerGitHub <noreply@github.com>2024-05-16 07:14:55 +0200
commit70f9fa05da4355c2f9d8cd113b62b7b7ad5b4946 (patch)
tree429920afa787febca9defbd90c69fdf4e6bc4a6a /src/op_mode
parentc3c81dcc0a79c1ab1bc9a13c62565a69ee5550fa (diff)
parentcc0573a78aac4d6ac4479fdf951d151a36b88cbc (diff)
downloadvyos-1x-70f9fa05da4355c2f9d8cd113b62b7b7ad5b4946.tar.gz
vyos-1x-70f9fa05da4355c2f9d8cd113b62b7b7ad5b4946.zip
Merge pull request #3456 from dmbaturin/T6339-show-version-flavor
op mode: T6339: display build flavor and comment in "show version"
Diffstat (limited to 'src/op_mode')
-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}}