mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 18:21:12 +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:
parent
a6bcfe20e0
commit
c74880756f
@ -100,6 +100,8 @@ export default
|
||||
config.analytics_status = c.analytics_status;
|
||||
config.version = c.version;
|
||||
config.ansible_version = c.ansible_version;
|
||||
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:');
|
||||
@ -110,6 +112,10 @@ export default
|
||||
$log.debug(reason);
|
||||
});
|
||||
}
|
||||
else {
|
||||
$log.debug('Pendo is turned off.')
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user