Commit 86fff4c3 authored by Efthymia Bika's avatar Efthymia Bika
Browse files

Add uuid to cloud config file

parent 29d084f4
......@@ -112,7 +112,7 @@
}
var auth_error = null;
var preauth_url = null;
var uuid = null;
function check_token() {
var token = $('#token').val().replace(/^\s+|\s+$/gm,'');
......@@ -136,7 +136,7 @@
.done(function(data) {
auth_error = null;
$('#token-error small').hide();
preauth_url = pithos_public + '/' + data.access.token.tenant.id;
uuid = data.access.token.tenant.id;
})
.fail(function(xhr, status, msg) {
auth_error = xhr.status + ' ' + msg;
......@@ -192,15 +192,18 @@
cloud.auth_url = url;
cloud.token = token;
cloud.pithos_public = pithos_public;
cloud.uuid = uuid;
}
});
// add new cloud
} else {
var cloud = {"name" : "", "auth_url" : "", "token" : "", "pithos_public" : ""};
var cloud = {"name" : "", "auth_url" : "",
"token" : "", "pithos_public" : "", "uuid" : ""};
cloud.name = cloud_name;
cloud.auth_url = url;
cloud.token = token;
cloud.pithos_public = pithos_public;
cloud.uuid = uuid;
clouds.push(cloud);
render_clouds("");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment