Skip to content

Commit

Permalink
fix actions with missing Faults
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Aug 15, 2017
1 parent 4eff3ee commit 2668966
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bundlewrap/items/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ def _get_result(
interactive=False,
interactive_default=True,
):
if self._faults_missing_for_attributes:
if self.error_on_missing_fault:
self._raise_for_faults()
else:
io.debug(_(
"skipping {item} on {node} because it is missing faults "
"for these attributes: {attrs} "
"(most of the time this means you're missing "
"a required key in your .secrets.cfg)"
).format(
attrs=", ".join(sorted(self._faults_missing_for_attributes)),
item=self.id,
node=self.node.name,
))
return (self.STATUS_SKIPPED, [_("Fault unavailable")])

if self.covered_by_autoskip_selector(autoskip_selector):
io.debug(_(
Expand Down

0 comments on commit 2668966

Please sign in to comment.