From b9c43b19acb6f649bb6f64c75ab63df768e360c9 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Wed, 15 Jan 2025 20:45:42 +0100 Subject: syslog: T6989: move up "global marker" one level in CLI --- src/migration-scripts/system/28-to-29 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/migration-scripts/system/28-to-29 b/src/migration-scripts/system/28-to-29 index dadfc994a..9716e9e90 100644 --- a/src/migration-scripts/system/28-to-29 +++ b/src/migration-scripts/system/28-to-29 @@ -41,6 +41,13 @@ def migrate(config: ConfigTree) -> None: config.delete(base + ['global', 'preserve-fqdn']) config.set(base + ['preserve-fqdn']) + # Move "global marker" one CLI level up, as it relates to all + # logging targets (console, global and remote) + marker_base = base + ['global', 'marker'] + if config.exists(marker_base): + config.copy(marker_base, base + ['marker']) + config.delete(marker_base) + # Rename host x.x.x.x -> remote x.x.x.x if config.exists(base + ['host']): config.set(base + ['remote']) -- cgit v1.2.3