Преглед изворни кода

AMBARI-5568. Security wizard freezes on the last step. (jaimin via srimanth)

Srimanth Gunturi пре 11 година
родитељ
комит
ed6aaaf73e
1 измењених фајлова са 13 додато и 0 уклоњено
  1. 13 0
      ambari-web/app/controllers/main/admin/security/add/step4.js

+ 13 - 0
ambari-web/app/controllers/main/admin/security/add/step4.js

@@ -382,6 +382,19 @@ App.MainAdminSecurityAddStep4Controller = App.MainAdminSecurityProgressControlle
     return true;
   },
 
+  deleteComponents: function(componentName, hostName) {
+    App.ajax.send({
+      name: 'admin.delete_component',
+      sender: this,
+      data: {
+        componentName: componentName,
+        hostName: hostName
+      },
+      success: 'onDeleteComplete',
+      error: 'onDeleteError'
+    });
+  },
+
   onDeleteComplete: function () {
     var deleteAtsCommand = this.get('commands').findProperty('name', 'DELETE_ATS');
     console.warn('APP_TIMELINE_SERVER doesn\'t support security mode. It has been removed from YARN service ');