diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/migration-scripts/system/28-to-29 | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/src/migration-scripts/system/28-to-29 b/src/migration-scripts/system/28-to-29 index b8439100a..2f55d425a 100644 --- a/src/migration-scripts/system/28-to-29 +++ b/src/migration-scripts/system/28-to-29 @@ -30,3 +30,12 @@ def migrate(config: ConfigTree) -> None:      if config.exists(base + ['user']):          config.delete(base + ['user']) + +    # rename host -> remote +    if config.exists(base + ['host']): +        config.set(base + ['remote']) +        config.set_tag(base + ['remote']) +        for remote in config.list_nodes(base + ['host']): +            config.copy(base + ['host', remote], base + ['remote', remote]) +            config.set_tag(base + ['remote']) +        config.delete(base + ['host']) | 
