Skip to content

Commit

Permalink
Pass default provider when resolving.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejholmes committed Mar 20, 2018
1 parent 031617b commit ec235fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stacker/actions/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def _launch_stack(self, stack, **kwargs):
return old_status

logger.debug("Resolving stack %s", stack.fqn)
stack.resolve(self.context, provider)
stack.resolve(self.context, self.provider)

logger.debug("Launching stack %s now.", stack.fqn)
template = self._template(stack.blueprint)
Expand Down Expand Up @@ -313,7 +313,7 @@ def _launch_stack(self, stack, **kwargs):
else:
return SubmittedStatus("destroying stack for re-creation")
except CancelExecution:
stack.set_outputs(self.provider.get_output_dict(provider_stack))
stack.set_outputs(provider.get_output_dict(provider_stack))
return SkippedStatus(reason="canceled execution")
except StackDidNotChange:
stack.set_outputs(provider.get_output_dict(provider_stack))
Expand Down
2 changes: 1 addition & 1 deletion stacker/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, provider, region=None):
self.provider = provider
self.region = region

def build(self, region, profile):
def build(self, region=None, profile=None):
return self.provider


Expand Down

0 comments on commit ec235fb

Please sign in to comment.