Просмотр исходного кода

Make sure definition_changes containers are not upgraded to stacks

fieldOfView 8 лет назад
Родитель
Сommit
5718ca7852
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py

+ 4 - 0
plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py

@@ -19,6 +19,10 @@ class VersionUpgrade22to24(VersionUpgrade):
 
         config = configparser.ConfigParser(interpolation = None)
         config.read_string(serialised) # Read the input string as config file.
+        if config.get("metadata", "type") == "definition_changes":
+            # This is not a container stack, don't upgrade it here
+            return
+
         config.set("general", "version", "3")
 
         container_list = []