summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-03-16 12:52:26 +0000
committerGerrit Code Review <review@openstack.org>2016-03-16 12:52:27 +0000
commitb4444de5a1a50276bb484aee7d40bcf960051fa9 (patch)
treefe0a3412a68a0ee2cd99931069dde23fa13a802c
parent6e2d6f80ddd339486ebc31b1375bf298217fa207 (diff)
parent1f55dbb9dd6c02fc46a1c2c44df11be9a031a7e3 (diff)
downloadnova-b4444de5a1a50276bb484aee7d40bcf960051fa9.tar.gz
Merge "Redundant parentheses removed"
-rw-r--r--nova/compute/resource_tracker.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/compute/resource_tracker.py b/nova/compute/resource_tracker.py
index e7829b1999..42ecd5fa37 100644
--- a/nova/compute/resource_tracker.py
+++ b/nova/compute/resource_tracker.py
@@ -370,7 +370,7 @@ class ResourceTracker(object):
instance_type = self._get_instance_type(ctxt, instance, prefix,
migration)
- if (instance_type is not None and instance_type.id == itype['id']):
+ if instance_type is not None and instance_type.id == itype['id']:
numa_topology = self._get_migration_context_resource(
'numa_topology', instance)
usage = self._get_usage_dict(
@@ -510,8 +510,7 @@ class ResourceTracker(object):
# We want the 'cpu_info' to be None from the POV of the
# virt driver, but the DB requires it to be non-null so
# just force it to empty string
- if ("cpu_info" not in resources or
- resources["cpu_info"] is None):
+ if "cpu_info" not in resources or resources["cpu_info"] is None:
resources["cpu_info"] = ''
self._verify_resources(resources)