bad[vm_type] = index_list
break
assert not bad, (
- 'vm-type indices must be consecutive, unique,'
- ' and start at 0.\n %s' % (
- '\n '.join(['Resource ID %s: VM Type: %s' % (x, y)
- for x, y in types.items() if y in bad])))
+ 'vm-type indices must be consecutive, unique,'
+ ' and start at 0.\n %s' % (
+ '\n '.join(['Resource ID %s: VM Type: %s' % (x, y)
+ for x, y in types.items() if y in bad])))
def get_indexed_resource_ids(resources):
if x and len(x) == 1:
all_vm_types[rid] = list(x)[0] # x is a set.
return all_vm_types
+