]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixed help message for AllocatedCapacityWeigher
authorgh159m <gh159m@att.com>
Mon, 22 Feb 2016 21:19:09 +0000 (15:19 -0600)
committergh159m <gh159m@att.com>
Mon, 22 Feb 2016 21:19:09 +0000 (15:19 -0600)
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

index 31c670c9eec2f91c594abfbdc88a420bf0f36981..d284bda026f5893d2cef9a1853f1bc8b469f728c 100644 (file)
@@ -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