def check_access_keys(self, iamuser_item):
        """
        alert when an IAM User has an active access key.
        """
        akeys = iamuser_item.config.get('accesskeys', {})
        for akey in akeys.keys():
            if u'status' in akeys[akey]:
                if akeys[akey][u'status'] == u'Active':
                    self.add_issue(1, 'User has active accesskey.', iamuser_item, notes=akey)
                else:
                    self.add_issue(0, 'User has an inactive accesskey.', iamuser_item, notes=akey)
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/auditors/iam/iam_user.py/IAMUserAuditor.check_access_keys/original