diff options
author | Zuul <zuul@review.openstack.org> | 2018-11-03 01:08:18 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-11-03 01:08:18 +0000 |
commit | 9db1c6061d10617b40dbc1d0d64faed79503cb81 (patch) | |
tree | 051fbb4b8b0192dd27f130cf82ab94fb5acd4dae /nova/quota.py | |
parent | 781c22818ff0e0aff839b1b47e2db1fba756c875 (diff) | |
parent | 031314b6d87638ebaf01a42dc97196ecb10c8499 (diff) | |
download | nova-9db1c6061d10617b40dbc1d0d64faed79503cb81.tar.gz |
Merge "Refactor scatter-gather utility to return exception objects"
Diffstat (limited to 'nova/quota.py')
-rw-r--r-- | nova/quota.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/quota.py b/nova/quota.py index 41dc12ce2d..0a2de6a178 100644 --- a/nova/quota.py +++ b/nova/quota.py @@ -1174,8 +1174,7 @@ def _instances_cores_ram_count(context, project_id, user_id=None): if user_id: total_counts['user'] = {'instances': 0, 'cores': 0, 'ram': 0} for result in results.values(): - if result not in (nova_context.did_not_respond_sentinel, - nova_context.raised_exception_sentinel): + if not nova_context.is_cell_failure_sentinel(result): for resource, count in result['project'].items(): total_counts['project'][resource] += count if user_id: |