From 4291a1a423c3cbbae9e4142575b36d6fbe1c126f Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 17 Mar 2024 14:43:57 +0100 Subject: T6133: append domain-name to commit-archive if defined --- python/vyos/config_mgmt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py index ff078649d..28ccee769 100644 --- a/python/vyos/config_mgmt.py +++ b/python/vyos/config_mgmt.py @@ -132,6 +132,9 @@ class ConfigMgmt: {}).get('source_address', '') if config.exists(['system', 'host-name']): self.hostname = config.return_value(['system', 'host-name']) + if config.exists(['system', 'domain-name']): + tmp = config.return_value(['system', 'domain-name']) + self.hostname += f'.{tmp}' else: self.hostname = 'vyos' -- cgit v1.2.3