From: gh159m Date: Mon, 22 Feb 2016 21:19:09 +0000 (-0600) Subject: Fixed help message for AllocatedCapacityWeigher X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7e61cb97612356358fb4c31589a923cd9028d64f;p=openstack-build%2Fcinder-build.git 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 --- 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