diff options
author | fieldOfView <aldo@fieldofview.com> | 2016-12-13 14:04:04 +0300 |
---|---|---|
committer | fieldOfView <aldo@fieldofview.com> | 2016-12-13 14:04:04 +0300 |
commit | 5718ca7852d60db16763744cee87b4f6444f21ca (patch) | |
tree | 6cac4f1c8665a13b66cefffdd7426cceb0e6924d /plugins/VersionUpgrade/VersionUpgrade22to24 | |
parent | c561395cf21b975b95eeed4f80c1c7251e9db245 (diff) |
Make sure definition_changes containers are not upgraded to stacks
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade22to24')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py b/plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py index dce2b311bb..04267f45f1 100644 --- a/plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py +++ b/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 = []
|