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

Pendo should not issue identity when turned off

Fixes an issue whereh the identity was issued to the Pendo agent despite an "analytic_status": "off"
This commit is contained in:
Jared Tabor 2016-09-16 14:13:53 -07:00
parent a6bcfe20e0
commit c74880756f

View File

@ -100,15 +100,21 @@ export default
config.analytics_status = c.analytics_status;
config.version = c.version;
config.ansible_version = c.ansible_version;
options = this.setPendoOptions(config);
this.setRole(options).then(function(options){
$log.debug('Pendo status is '+ config.analytics_status + '. Object below:');
$log.debug(options);
$pendolytics.identify(options);
}, function(reason){
// reject function for setRole
$log.debug(reason);
});
if(config.analytics_status === 'detailed' || config.analytics_status === 'anonymous'){
$pendolytics.bootstrap();
options = this.setPendoOptions(config);
this.setRole(options).then(function(options){
$log.debug('Pendo status is '+ config.analytics_status + '. Object below:');
$log.debug(options);
$pendolytics.identify(options);
}, function(reason){
// reject function for setRole
$log.debug(reason);
});
}
else {
$log.debug('Pendo is turned off.')
}
}
};
}