stop-on stop execution of parent manifest

Bug #1735757 reported by Guillermo Gonzalez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Confirmed
Low
Unassigned

Bug Description

If a manifest includes another manifest with a stop-on phase, when the stop condition is matched not only the included manifest stop execution but also the parent manifest.

example:

manifest-main:

secrets
include config=manifest-sub
nagios-check

manifest-sub:

stop-on return-code=99 config=check

check:

#!/bin/bash
exit 99

Baically stop-on behaves like sys.exit() (in python) instead of a return. which makes it's quite difficult to build reusable manifests that use stop-on to skip a phase for a specific case.
Would be possible to add a config to allow stop-on behave like a return?

Changed in mojo:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.