Skip to content

Commit 2c45d94

Browse files
author
John L. Villalovos
committed
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 3345a6d)
1 parent 53bc172 commit 2c45d94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tempest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function configure_tempest {
227227
# Ensure ``flavor_ref`` and ``flavor_ref_alt`` have different values.
228228
# Some resize instance in tempest tests depends on this.
229229
for f in ${flavors[@]:1}; do
230-
if [[ $f -ne $flavor_ref ]]; then
230+
if [[ "$f" != "$flavor_ref" ]]; then
231231
flavor_ref_alt=$f
232232
break
233233
fi

0 commit comments

Comments
 (0)