IBM XIV: Fix ordered use of a dict
When hash randomization is enabled, this code fails unit tests,
because names are generated in assorted orders.
Sort the dict keys to always generate the same names.
@@ -355,7 +355,7 @@ class XIVProxy(proxy.IBMStorageProxy):
if specs is None or specs == {}:
return ''
- for key, value in specs.items():
+ for key, value in sorted(specs.items()):
perf_class_name += '_' + key + '_' + value
try:
