1
0
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:
Jared Tabor 2016-09-16 14:13:53 -07:00
parent a6bcfe20e0
commit c74880756f

View File

@ -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.')
}
}
};
}
];