1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

M #~: Fix context in rdp button (#4656)

This commit is contained in:
Sergio Betanzos 2020-05-05 12:27:26 +02:00 committed by GitHub
parent 8b0503a500
commit b8363dbaeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -179,8 +179,8 @@ define(function(require) {
if (args && args.ip && args.name) {
var credentials = {};
args.username && (credentials["username"] = args.username);
args.password && (credentials["password"] = args.password);
args.username && (credentials["USERNAME"] = args.username);
args.password && (credentials["PASSWORD"] = args.password);
Files.downloadRdpFile(args.ip, args.name, credentials);
}
else if (vm && vm.NAME && vm.TEMPLATE && vm.TEMPLATE.NIC) {

View File

@ -23,7 +23,7 @@ define(function(require) {
};
function _downloadRdpFile(ip, name = "vm_name", credentials = {}) {
var file = _rdpFile(ip, credentials.username, credentials.password);
var file = _rdpFile(ip, credentials.USERNAME, credentials.PASSWORD);
_download(name, ".rdp", file);
}