diff options
author | Christian Breunig <christian@breunig.cc> | 2024-03-17 21:45:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-17 21:45:25 +0100 |
commit | 2942040d8099a9e5cee6adf50faa536817c01b33 (patch) | |
tree | a0313d65732bb90f46fb938f6bb132439069612d /python | |
parent | d18d773238efc34026a580fc7f5f79c408ea8cfa (diff) | |
parent | 443c9018a55eb05c617c28e6528167430984b17e (diff) | |
download | vyos-1x-2942040d8099a9e5cee6adf50faa536817c01b33.tar.gz vyos-1x-2942040d8099a9e5cee6adf50faa536817c01b33.zip |
Merge pull request #3141 from vyos/mergify/bp/sagitta/pr-3140
T6133: append domain-name to commit-archive if defined (backport #3140)
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/config_mgmt.py | 3 |
1 files changed, 3 insertions, 0 deletions
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' |