Add missed options for bash script.
Initial commit missed 'set -euo pipefail', and redirecting everything to 'tee' causes job to pass, even ceph-upgrade command failed. Change-Id: I5816b3874dff0e5035c3e77c220b56509a12812e
This commit is contained in:
parent
23ee103057
commit
7f47c43e83
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: run Ceph upgrade
|
||||
shell: |
|
||||
{{ working_dir }}/ceph-upgrade-run.sh 2>&1 | tee {{ working_dir }}/ceph-upgrade-run.log
|
||||
{{ working_dir }}/ceph-upgrade-run.sh &> {{ working_dir }}/ceph-upgrade-run.log
|
||||
ignore_errors: true
|
||||
register: ceph_upg_status
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
source {{ undercloud_rc }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue