mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -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,6 +100,8 @@ 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;
|
||||||
|
if(config.analytics_status === 'detailed' || config.analytics_status === 'anonymous'){
|
||||||
|
$pendolytics.bootstrap();
|
||||||
options = this.setPendoOptions(config);
|
options = this.setPendoOptions(config);
|
||||||
this.setRole(options).then(function(options){
|
this.setRole(options).then(function(options){
|
||||||
$log.debug('Pendo status is '+ config.analytics_status + '. Object below:');
|
$log.debug('Pendo status is '+ config.analytics_status + '. Object below:');
|
||||||
@@ -110,6 +112,10 @@ export default
|
|||||||
$log.debug(reason);
|
$log.debug(reason);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$log.debug('Pendo is turned off.')
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user