Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #548 from cdrage/reorder-context-in-render
Browse files Browse the repository at this point in the history
Change order of getting context
  • Loading branch information
cdrage committed Feb 22, 2016
2 parents f6ffde1 + b3060ad commit 5e8d17d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atomicapp/nulecule/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,15 @@ def render(self, provider_key=None, dryrun=False):
if self._app:
self._app.render(provider_key=provider_key, dryrun=dryrun)
return

if self.artifacts is None:
raise NuleculeException(
"No artifacts specified in the Nulecule file")
context = self.get_context()
if provider_key and provider_key not in self.artifacts:
raise NuleculeException(
"Data for provider \"%s\" are not part of this app"
% provider_key)
context = self.get_context()
for provider in self.artifacts:
if provider_key and provider != provider_key:
continue
Expand Down

0 comments on commit 5e8d17d

Please sign in to comment.