redhat-openstack / openshift-on-openstack

A place to write templates, docs etc. for deploying OpenShift on OpenStack.
Apache License 2.0
136 stars 87 forks source link

bug: is_scaleup always return 0 due to -o pipefail #386

Open ioggstream opened 7 years ago

ioggstream commented 7 years ago

I expect

is_scaleup to return EXIT_SUCCESS (0) only if there are new nodes

instead

returns EXIT_SUCCESS whenever ansible/inventory and ansible.deployed/inventory differs

Hint

This is due to

set -o pipefail

which causes every diff to return EXIT_FAILURE