summaryrefslogtreecommitdiff
path: root/scripts/upgrade.py
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-01-31 22:21:20 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-01-31 22:21:26 +0100
commit5b44487b351458c2825f8306b04d2da42c484937 (patch)
treecc24e6219a535d44f99302968208426e01c73189 /scripts/upgrade.py
parent63da784de86a85dfa9b30e415b460197eb54a8a5 (diff)
upgrade: fix problem with missing profiles
Diffstat (limited to 'scripts/upgrade.py')
-rw-r--r--scripts/upgrade.py3
1 files changed, 1 insertions, 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))