mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 20:37:39 -02:30
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:
@@ -100,15 +100,21 @@ export default
|
|||||||
config.analytics_status = c.analytics_status;
|
config.analytics_status = c.analytics_status;
|
||||||
config.version = c.version;
|
config.version = c.version;
|
||||||
config.ansible_version = c.ansible_version;
|
config.ansible_version = c.ansible_version;
|
||||||
options = this.setPendoOptions(config);
|
if(config.analytics_status === 'detailed' || config.analytics_status === 'anonymous'){
|
||||||
this.setRole(options).then(function(options){
|
$pendolytics.bootstrap();
|
||||||
$log.debug('Pendo status is '+ config.analytics_status + '. Object below:');
|
options = this.setPendoOptions(config);
|
||||||
$log.debug(options);
|
this.setRole(options).then(function(options){
|
||||||
$pendolytics.identify(options);
|
$log.debug('Pendo status is '+ config.analytics_status + '. Object below:');
|
||||||
}, function(reason){
|
$log.debug(options);
|
||||||
// reject function for setRole
|
$pendolytics.identify(options);
|
||||||
$log.debug(reason);
|
}, function(reason){
|
||||||
});
|
// reject function for setRole
|
||||||
|
$log.debug(reason);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$log.debug('Pendo is turned off.')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user