Enis Afgan committed 759a4ef

Store deployment_version in cluster config only if it's a new cluster or migrations ran

Comments (0)

Files changed (1)


             cc['services'] = svcs
             cc['cluster_type'] =
             cc['persistent_data_version'] =
-            cc['deployment_version'] ='deployment_version',
+            # If 'deployment_version' is not in UD, don't store it in the config
+            if 'deployment_version' in
+                cc['deployment_version'] =['deployment_version']
             misc.dump_yaml_to_file(cc, file_name)
             # Reload the user data object in case anything has changed
    = misc.merge_yaml_objects(cc,