Revert "Minor cleanup of openstack-protect script" 25/65025/5
authorThanh Ha <zxiiro@gmail.com>
Wed, 12 Aug 2020 19:07:32 +0000 (15:07 -0400)
committerThanh Ha <zxiiro@gmail.com>
Wed, 12 Aug 2020 20:23:42 +0000 (16:23 -0400)
commit0c66e6ab1d80770ca7060237b436190f9fa274a0
tree60c47ff7f80f3ce03e2baa37925f18591589f371
parenta254df8d0b68df0daf98ba407643d84cd75f5b98
Revert "Minor cleanup of openstack-protect script"

The "Minor cleanup" ended up breaking the script entirely as the
image list array is not correctly created causing invalid image
name to be passed to the openstack command.

Also adds some code to strip double quotes from the prefix and suffix
if there are any.

This reverts commit b03a1792362654ad8fcd15092a64ed00f8509209.

Change-Id: Id4f734113d6dede7e7603f85784b46d164b91392
Co-authored-by: Aric Gardner <agardner@linuxfoundation.org>
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
shell/openstack-protect-in-use-images.sh