(self)
return provider
Ask a resource for the provider, and then see what the planned actions should be.
        The planned actions are kept on the provider object. We don't need to obtain the plan.
        Return the provider.
Ask a resource for the provider, and then see what the planned actions should be.
        The planned actions are kept on the provider object. We don't need to obtain the plan.
        Return the provider.
Ask a resource for the provider and then see what the planned actions should be . The planned actions are kept on the provider object . We don t need to obtain the plan . Return the provider .
def do_plan(self):
        """
        Ask a resource for the provider, and then see what the planned actions should be.
        The planned actions are kept on the provider object. We don't need to obtain the plan.
        Return the provider.
        """

        from opsmop.callbacks.callbacks import Callbacks

        # ask the resource for a provider instance
        provider = self.provider()

        if provider.skip_plan_stage():
            return provider
        
        # tell the context object we are about to run the plan stage.
        Callbacks().on_plan(provider)
        # compute the plan
        provider.plan()
        # copy the list of planned actions into the 'to do' list for the apply method
        # on the provider
        provider.commit_to_plan()

        return provider
def do_plan ( self ) : from opsmop . callbacks . callbacks import Callbacks # ask the resource for a provider instance provider = self . provider ( ) if provider . skip_plan_stage ( ) : return provider # tell the context object we are about to run the plan stage. Callbacks ( ) . on_plan ( provider ) # compute the plan provider . plan ( ) # copy the list of planned actions into the 'to do' list for the apply method # on the provider provider . commit_to_plan ( ) return provider