Remove unreachable code in basic_consolidation.py

In basic_consolidation.py there is a method called calculate_score_vm()
which had two return statements following each other. The second one
(which equals the first one) is unreachable as the first one returns.

Change-Id: Ia4877c22188fae6217e07597a2dd939633414349
Closes-Bug: #1524911
This commit is contained in:
Gábor Antal
2015-12-10 17:48:25 +01:00
parent 64747cad1f
commit a62553a6a5

View File

@@ -321,10 +321,6 @@ class BasicConsolidation(BaseStrategy):
0,
0)
return self.calculate_weight(model, vm, total_cores_used,
0,
0)
def print_utilization(self, model):
if model is None:
raise ClusteStateNotDefined()