def get_instance_profiles_for_role(self, role_name):
        found_profiles = []

        for profile in self.get_instance_profiles():
            if 0 > len(profile.roles):
                if profile.roles[0].name == role_name:
                    found_profiles.append(profile)

        return found_profiles
dataset/ETHPy150Open spulec/moto/moto/iam/models.py/IAMBackend.get_instance_profiles_for_role/swapped operands of `>`