1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5851: Show descriptive remote console errors on Sunstone (#2105)

This commit is contained in:
Frederick Borges 2022-05-30 19:25:03 +02:00 committed by GitHub
parent a63f38b47a
commit 08cf7e7425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View File

@ -115,7 +115,6 @@ class SunstoneRemoteConnections
def error(code, msg)
@logger.error(msg)
return [code, msg] unless @options[:json_error]
[code, OpenNebula::Error.new(msg).to_json]
end

View File

@ -260,7 +260,11 @@ define(function(require) {
$.each(Sunstone.getDataTable(TAB_ID).elements(), function(index, elem) {
Sunstone.runAction("VM.startvnc_action", elem);
});
}
},
error: function(req, resp) {
Notifier.onError(req, resp);
},
notify: true
},
"VM.startvnc_action" : {
type: "single",
@ -290,7 +294,11 @@ define(function(require) {
var vm_name = OpenNebulaVM.getName(elem);
Sunstone.runAction("VM.startvmrc_action", elem, vm_name);
});
}
},
error: function(req, resp) {
Notifier.onError(req, resp);
},
notify: true
},
"VM.startvmrc_action" : {
type: "single",
@ -318,7 +326,11 @@ define(function(require) {
$.each(Sunstone.getDataTable(TAB_ID).elements(), function(index, elem) {
Sunstone.runAction("VM.startspice_action", elem);
});
}
},
error: function(req, resp) {
Notifier.onError(req, resp);
},
notify: true
},
"VM.startspice_action" : {
type: "single",