Use string comparison to compare UUID values

Was using the '-ne' integer comparison operator to compare UUID
values. This caused error messages like:

/opt/stack/new/devstack/lib/tempest: line 226: [[: dfae26ac-1780-4677-902d: value too great for base (error token is "902d")

Change it to use '!=' string comparison operator

Change-Id: Ib7c9197dd0fe58addf33b4f82beea6de64f6b10b
(cherry picked from commit 3345a6d316)
This commit is contained in:
John L. Villalovos 2017-03-13 13:47:34 -07:00
parent 53bc172448
commit 2c45d94e46
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ function configure_tempest {
# Ensure ``flavor_ref`` and ``flavor_ref_alt`` have different values.
# Some resize instance in tempest tests depends on this.
for f in ${flavors[@]:1}; do
if [[ $f -ne $flavor_ref ]]; then
if [[ "$f" != "$flavor_ref" ]]; then
flavor_ref_alt=$f
break
fi