Skip to content

Commit

Permalink
Merge pull request #77 from spacelift-io/errexit-reset
Browse files Browse the repository at this point in the history
Reset errexit flag in cloudinit script
  • Loading branch information
Yantrio authored Dec 6, 2023
2 parents ea1e536 + 729f349 commit 1e2437a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .spacelift/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: 1
module_version: 2.3.1
module_version: 2.3.2
tests:
- name: AMD64-based workerpool
project_root: examples/amd64
Expand Down
2 changes: 2 additions & 0 deletions asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ echo "Starting the Spacelift binary" >> /var/log/spacelift/info.log
/usr/bin/spacelift-launcher 1>>/var/log/spacelift/info.log 2>>/var/log/spacelift/error.log
)}
# Reset the errexit option so if for some reason the `spacelift` binary steops, the poweroff should be run.
set +e
spacelift
echo "Powering off in ${var.poweroff_delay} seconds" >> /var/log/spacelift/error.log
sleep ${var.poweroff_delay}
Expand Down

0 comments on commit 1e2437a

Please sign in to comment.