Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

When pre_first_boot script Components Fail, workflow Execution Doesn't Stop #51

Closed
foigus opened this issue Apr 28, 2015 · 2 comments
Closed

Comments

@foigus
Copy link

foigus commented Apr 28, 2015

When running a workflow with a pre_first_boot script component, if the pre_first_boot script exits non-zero (i.e. it fails) workflow execution continues and the user isn't notified the script failed.

An example workflow:

<dict>
  <key>name</key>
  <string>Test Script Error</string>
  <key>description</key>
  <string>Intentionally create an error in a script</string>
  <key>components</key>
  <array>
    <dict>
      <key>type</key>
      <string>script</string>
      <key>content</key>
      <string>#!/bin/bash ; exit 1</string>
      <key>pre_first_boot</key>
      <true/>
    </dict>
  </array>
  <key>restart_action</key>
  <string>none</string>
</dict>
@grahamgilbert
Copy link
Collaborator

This should be rolled in with issue #48 - basically the same problem.

@grahamgilbert
Copy link
Collaborator

Fixed in #54

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants