(self)
return inst
Given a facts instance, obtain the provider used to fulfill the resource.
Given a facts instance, obtain the provider used to fulfill the resource.
Given a facts instance obtain the provider used to fulfill the resource .
def provider(self):
        """
        Given a facts instance, obtain the provider used to fulfill the resource. 
        """

        cls = None
        if 'method' in self.kwargs:
            method = self.kwargs.get('method')
            cls = self.get_provider(method)
        else:
            cls = self.default_provider()
        inst = cls(self)
        self.copy_fields_to_provider(inst)
        self.resolve_provider_fields(inst)
        return inst
def provider ( self ) : cls = None if 'method' in self . kwargs : method = self . kwargs . get ( 'method' ) cls = self . get_provider ( method ) else : cls = self . default_provider ( ) inst = cls ( self ) self . copy_fields_to_provider ( inst ) self . resolve_provider_fields ( inst ) return inst