1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Update response object nesting for pendo service

This commit is contained in:
Jared Tabor 2015-11-16 12:46:11 -08:00
parent 9bf0b8be4c
commit 01b77168b5

View File

@ -100,8 +100,10 @@ export default
Rest.setUrl(url); Rest.setUrl(url);
var promise = Rest.get(); var promise = Rest.get();
promise.then(function (response) { promise.then(function (response) {
config = response.license_info; config = response.data.license_info;
config.analytics_status = response.analytics_status; config.analytics_status = response.data.analytics_status;
config.version = response.data.version;
config.ansible_version = response.data.ansible_version;
if(config.analytics_status === 'detailed' || config.analytics_status === 'anonymous'){ if(config.analytics_status === 'detailed' || config.analytics_status === 'anonymous'){
$pendolytics.bootstrap(); $pendolytics.bootstrap();
deferred.resolve(config); deferred.resolve(config);