This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 830074b32a AMBARI-26187: Ambari cluster deployment is encountering a
blockage #3849
830074b32a is described below
commit 830074b32a2d91fce7e30642f3504c69a52ab04f
Author: zrain <[email protected]>
AuthorDate: Sat Oct 19 09:45:58 2024 +0800
AMBARI-26187: Ambari cluster deployment is encountering a blockage #3849
---
ambari-web/app/utils/ajax/ajax_queue.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ambari-web/app/utils/ajax/ajax_queue.js
b/ambari-web/app/utils/ajax/ajax_queue.js
index b32245bbd3..fc7a910200 100644
--- a/ambari-web/app/utils/ajax/ajax_queue.js
+++ b/ambari-web/app/utils/ajax/ajax_queue.js
@@ -151,7 +151,7 @@ App.ajaxQueue = Em.Object.extend({
var r = App.ajax.send(queue.shift());
this.propertyDidChange('queue');
if (r) {
- r.then(this._complete.bind(this));
+ r.always(this._complete.bind(this));
}
else {
if (this.get('abortOnError')) {
@@ -163,8 +163,8 @@ App.ajaxQueue = Em.Object.extend({
}
},
- _complete: function(xhr) {
- if(xhr.status>=200 && xhr.status <= 299) {
+ _complete: function(_param1, textStatus, _param2) {
+ if(textStatus === 'success') {
this.runNextRequest();
}
else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]