Rework image code to handle no results from YAML 63/14763/4
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 5 Mar 2019 01:47:38 +0000 (20:47 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 5 Mar 2019 02:52:40 +0000 (21:52 -0500)
commit399343540de75a62321e715057798a19d8054abf
tree13086bf116a989a273b8ead2ea65cd8ef7f0ca2a
parent0913c6350d626ce69174a05657988f753e6ea5ad
Rework image code to handle no results from YAML

When grep has 0 matches it returns a non-zero exit code. In this case
a 0 match grep is a possibility for YAML files so ignore grep's exit
code in this instance.

Change-Id: Ia7eb55364feeb42bf35681c4ae0798fe25bbfad1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
shell/openstack-protect-in-use-images.sh