Pārlūkot izejas kodu

AMBARI-17448. Ambari wizard cannot add Service (alexantonenko)

Alex Antonenko 9 gadi atpakaļ
vecāks
revīzija
ca2c63d5e1

+ 3 - 1
ambari-web/app/mixins/common/configs/configs_saver.js

@@ -390,7 +390,9 @@ App.ConfigsSaverMixin = Em.Mixin.create({
       fileNamesToSave.forEach(function(fName) {
 
         /** @see <code>_timeStamps<code> **/
-        if (this.get('_timeStamps')[fName] === tagVersion) tagVersion++;
+        if (this.get('_timeStamps')[fName] === tagVersion) {
+          tagVersion = "version" + ((new Date).getTime() + 1);
+        }
         this.get('_timeStamps')[fName] = tagVersion;
 
         if (this.allowSaveSite(fName)) {