Set max limit as required by versioned objects

max_limit is an api option which must be set for use by versioned
objects.

Change-Id: I242a811b1fae299d09f22377101a140575923e63
changes/82/138282/8
Steven Dake 2014-12-02 01:27:17 -07:00
parent b3dc3a0e21
commit 6df4c09281
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,11 @@ API_SERVICE_OPTS = [
help='The port for the magnum API server'),
cfg.StrOpt('host',
default='127.0.0.1',
help='The listen IP for the magnum API server')
help='The listen IP for the magnum API server'),
cfg.IntOpt('max_limit',
default=1000,
help='The maximum number of items returned in a single '
'response from a collection resource.')
]
CONF = cfg.CONF