'set a provider item based on the list of item names provided.'

def set_provider_item(self, items, required=False):

    for item in items:
        provider_key = items[0]
        if (item in self._idp):
            self.provider[provider_key] = self._idp.pop(item)
            break
    else:
        default = self.get_default(provider_key)
        if (default is not None):
            self.provider[provider_key] = default
        elif required:
            raise errors.AnsibleFilterError('|failed    provider    {0}    missing    required    key    {1}'.format(self.__class__.__name__, provider_key))
