Use min and max on IntOpt option types

Latest version of oslo.config support the ability to set valid
range on IntOpt option values.  This path makes use of that feature
for a number of options with well known minimum and maximum values.

Change-Id: Ie4b081bdaa373c9dedf7dd0c9884553ffb42b61c
This commit is contained in:
Eric Brown
2015-08-15 11:36:33 -07:00
parent cae8244206
commit 3bb7fcb643
13 changed files with 16 additions and 38 deletions

View File

@@ -61,6 +61,7 @@ global_opts = [
help='Default glance host name or IP'),
cfg.IntOpt('glance_port',
default=9292,
min=1, max=65535,
help='Default glance port'),
cfg.ListOpt('glance_api_servers',
default=['$glance_host:$glance_port'],