'validate this idp instance'

def validate(self):

    if (not isinstance(self.provider['headers'], list)):
        raise errors.AnsibleFilterError('|failed    headers    for    provider    {0}    must    be    a    list'.format(self.__class__.__name__))
