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:
parent
d8079c2e52
commit
fefb4167f1
@ -56,7 +56,7 @@ class MigrationLister(multi_cell_list.CrossCellLister):
|
|||||||
results = context.scatter_gather_skip_cell0(
|
results = context.scatter_gather_skip_cell0(
|
||||||
ctx, db.migration_get_by_uuid, marker)
|
ctx, db.migration_get_by_uuid, marker)
|
||||||
db_migration = None
|
db_migration = None
|
||||||
for cell_uuid, result in results.items():
|
for result in results.values():
|
||||||
if result not in (context.did_not_respond_sentinel,
|
if result not in (context.did_not_respond_sentinel,
|
||||||
context.raised_exception_sentinel):
|
context.raised_exception_sentinel):
|
||||||
db_migration = result
|
db_migration = result
|
||||||
|
@ -1327,7 +1327,7 @@ def _instances_cores_ram_count(context, project_id, user_id=None):
|
|||||||
total_counts = {'project': {'instances': 0, 'cores': 0, 'ram': 0}}
|
total_counts = {'project': {'instances': 0, 'cores': 0, 'ram': 0}}
|
||||||
if user_id:
|
if user_id:
|
||||||
total_counts['user'] = {'instances': 0, 'cores': 0, 'ram': 0}
|
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,
|
if result not in (nova_context.did_not_respond_sentinel,
|
||||||
nova_context.raised_exception_sentinel):
|
nova_context.raised_exception_sentinel):
|
||||||
for resource, count in result['project'].items():
|
for resource, count in result['project'].items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user