소스 검색

upgrade: fix problem with missing profiles

Mikael Magnusson 2 년 전
부모
커밋
5b44487b35
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      scripts/upgrade.py

+ 1 - 2
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))