Some fixes in comments

This patch fixed a couple of wrong comments.

Change-Id: Iacb4d423ec0e62bdd9f1243d72a950cefbde46c3
This commit is contained in:
Xinyuan Huang 2015-08-25 23:52:07 +08:00
parent 62b0021500
commit 39fb7d996a
2 changed files with 1 additions and 4 deletions

View File

@ -17,7 +17,7 @@
RAM Cost. Calculate instance placement costs by hosts' RAM usage.
The default is to spread instances across all hosts evenly. If you prefer
stacking, you can set the 'ram_cost_multiplier' option to a positive
stacking, you can set the 'ram_cost_multiplier' option to a negative
number and the cost has the opposite effect of the default.
"""

View File

@ -64,9 +64,6 @@ class TenantRackAffinityCost(solver_costs.BaseLinearCost):
for i in xrange(num_hosts):
host_name = hosts[i].host
host_racks = host_racks_map.get(host_name, set([]))
# if tenant not in host state then tenant network does not exist
# there, hence no need for further check
if project_id in hosts[i].projects:
affinity_hosts.add(host_name)
affinity_racks = affinity_racks.union(host_racks)