From 7e61cb97612356358fb4c31589a923cd9028d64f Mon Sep 17 00:00:00 2001 From: gh159m Date: Mon, 22 Feb 2016 15:19:09 -0600 Subject: [PATCH] Fixed help message for AllocatedCapacityWeigher Changed help message for allocated_capacity_weight_multiplier to correctly show that positive weights are needed to stack. Also changed wording to indicate free and allocated capacity for the respective values. Change-Id: I84120d3598cde014eaf3fef5998dea5b69439240 Closes-bug: #1460568 --- cinder/scheduler/weights/capacity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cinder/scheduler/weights/capacity.py b/cinder/scheduler/weights/capacity.py index 31c670c9e..d284bda02 100644 --- a/cinder/scheduler/weights/capacity.py +++ b/cinder/scheduler/weights/capacity.py @@ -51,12 +51,12 @@ from cinder import utils capacity_weight_opts = [ cfg.FloatOpt('capacity_weight_multiplier', default=1.0, - help='Multiplier used for weighing volume capacity. ' + help='Multiplier used for weighing free capacity. ' 'Negative numbers mean to stack vs spread.'), cfg.FloatOpt('allocated_capacity_weight_multiplier', default=-1.0, - help='Multiplier used for weighing volume capacity. ' - 'Negative numbers mean to stack vs spread.'), + help='Multiplier used for weighing allocated capacity. ' + 'Positive numbers mean to stack vs spread.'), ] CONF = cfg.CONF -- 2.45.2