From 5b44487b351458c2825f8306b04d2da42c484937 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 31 Jan 2023 22:21:20 +0100 Subject: upgrade: fix problem with missing profiles --- scripts/upgrade.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/upgrade.py b/scripts/upgrade.py index a3fd909..14b184e 100644 --- a/scripts/upgrade.py +++ b/scripts/upgrade.py @@ -28,7 +28,6 @@ def find_source_image(client, image): def copy_config(old, new): new.devices = old.devices new.description = old.description - new.profiles = old.profiles new_config = new.config for key, value in old.config.items(): @@ -160,7 +159,7 @@ def main(argv): old.start(wait=True) new_source = find_source_image(client, new_image) - new_config = {'name': new_name, 'source': new_source} + new_config = {'name': new_name, 'source': new_source, 'profiles': old.profiles} if is_allow_existing and client.containers.exists(new_name): new = Container(client.containers.get(new_name)) -- cgit v1.2.3