diff options
author | John Estabrook <jestabro@vyos.io> | 2020-03-30 15:13:48 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2020-03-30 15:23:59 -0500 |
commit | 10b2b9d9bd9e8da76247651c996627a7921a04c3 (patch) | |
tree | 7dccf3e518226bbe0464e5d70655a1557e43de56 /python | |
parent | d41b9e56058c50117e70c7d2639ebbead466da27 (diff) | |
download | vyos-1x-10b2b9d9bd9e8da76247651c996627a7921a04c3.tar.gz vyos-1x-10b2b9d9bd9e8da76247651c996627a7921a04c3.zip |
migration: T2029: run virtual migration before migration
Update syntax of component version string, before passing config file to
configtree in migration scripts.
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/migrator.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/vyos/migrator.py b/python/vyos/migrator.py index e60d862ff..7d77e6bac 100644 --- a/python/vyos/migrator.py +++ b/python/vyos/migrator.py @@ -209,8 +209,7 @@ class VirtualMigrator(Migrator): cfg_versions = self.read_config_file_versions() if not cfg_versions: - raise MigratorError("Config file has no version information;" - " virtual migration not possible.") + return if self.update_vintage(): self._changed = True |