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
(cherry picked from commit 7f47c43e83
)
This commit is contained in:
parent
d1ce8256f4
commit
9c090a0c96
|
@ -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