Skip to content
Permalink
Browse files
AMBARI-25055 JS error after starting stack downgrade
  • Loading branch information
atkach committed Dec 19, 2018
1 parent 596a40a commit 34a4c61f4480d59db764ff503e108919da540c58
Showing 1 changed file with 2 additions and 10 deletions.
@@ -1012,7 +1012,6 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage,
this.runPreUpgradeCheckOnly({
id: version.get('id'),
label: version.get('displayName'),
id: version.get('id'),
type: method.get('type')
});
} else {
@@ -2287,15 +2286,8 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage,
this.initDBProperties();
App.set('upgradeState', lastUpgradeData.Upgrade.request_status);
this.loadRepoVersionsToModel().done(function () {
var upgradeVersion;
if (isDowngrade) {
var services = Object.keys(lastUpgradeData.versions);
upgradeVersion = services[0].from_repository_version;
} else {
var toVersion = App.RepositoryVersion.find().findProperty('repositoryVersion', lastUpgradeData.Upgrade.associated_version);
upgradeVersion = toVersion && toVersion.get('displayName');
}
lastUpgradeData.versions
var version = App.RepositoryVersion.find().findProperty('repositoryVersion', lastUpgradeData.Upgrade.associated_version);
var upgradeVersion = version && version.get('displayName');
self.setDBProperty('upgradeVersion', upgradeVersion);
self.set('upgradeVersion', upgradeVersion);
});

0 comments on commit 34a4c61

Please sign in to comment.