Skip to content

Commit d9622cc

Browse files
committed
Fix wrong order in error message
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent 9df2627 commit d9622cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Tests/iaas/scs_0103_standard_flavors/standard_flavors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,13 @@ def compute_scs_0103_flavor(flavor_lookup, flavor_spec):
7979
# check that flavor matches flavor_spec
8080
# cpu, ram, and disk should match, and they should match precisely for discoverability
8181
# also check extra_specs (ours are prefixed with 'scs:')
82+
# list of triples: (field, actual value, expected value)
8283
comparison = [
8384
('vcpus', flavor.vcpus, flavor_spec['cpus']),
8485
('ram', flavor.ram, 1024 * flavor_spec['ram']),
8586
('disk', flavor.disk, flavor_spec.get('disk', 0)),
8687
] + [
87-
(key, value, flavor.extra_specs.get(key))
88+
(key, flavor.extra_specs.get(key), value)
8889
for key, value in flavor_spec.items()
8990
if key.startswith("scs:")
9091
]

0 commit comments

Comments
 (0)