Remove unnecessary variables

The 'cell_uuid' is not used at all.
So it can be removed.

TrivialFix
Change-Id: I42c658ba076f4f867505f80218de848ebc4161f8
This commit is contained in:
Takashi NATSUME 2018-02-08 10:00:08 +09:00
parent d8079c2e52
commit fefb4167f1
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class MigrationLister(multi_cell_list.CrossCellLister):
results = context.scatter_gather_skip_cell0(
ctx, db.migration_get_by_uuid, marker)
db_migration = None
for cell_uuid, result in results.items():
for result in results.values():
if result not in (context.did_not_respond_sentinel,
context.raised_exception_sentinel):
db_migration = result

View File

@ -1327,7 +1327,7 @@ def _instances_cores_ram_count(context, project_id, user_id=None):
total_counts = {'project': {'instances': 0, 'cores': 0, 'ram': 0}}
if user_id:
total_counts['user'] = {'instances': 0, 'cores': 0, 'ram': 0}
for cell_uuid, result in results.items():
for result in results.values():
if result not in (nova_context.did_not_respond_sentinel,
nova_context.raised_exception_sentinel):
for resource, count in result['project'].items():