summaryrefslogtreecommitdiffstats
path: root/nova/flags.py
diff options
context:
space:
mode:
authorNaveed Massjouni <naveedm9@gmail.com>2011-03-24 13:48:04 -0400
committerNaveed Massjouni <naveedm9@gmail.com>2011-03-24 13:48:04 -0400
commit1ad0faf980ac89e904a246f1dfeddf51a21fd740 (patch)
tree8d969dac3697b7e8636f9df221a70be204816140 /nova/flags.py
parent4ea9fc435e35129b28d0012234355630710289cf (diff)
downloadnova-1ad0faf980ac89e904a246f1dfeddf51a21fd740.tar.gz
nova-1ad0faf980ac89e904a246f1dfeddf51a21fd740.tar.xz
nova-1ad0faf980ac89e904a246f1dfeddf51a21fd740.zip
Paginated results should not include the item starting at marker.
Improved implementation of common.limited_by_marker as suggested by Matt Dietz. Added flag osapi_max_limit.
Diffstat (limited to 'nova/flags.py')
-rw-r--r--nova/flags.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/flags.py b/nova/flags.py
index 9123e9ac7..d1817dc3b 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -302,6 +302,8 @@ DEFINE_string('osapi_host', '$my_ip', 'ip of api server')
DEFINE_string('osapi_scheme', 'http', 'prefix for openstack')
DEFINE_integer('osapi_port', 8774, 'OpenStack API port')
DEFINE_string('osapi_path', '/v1.0/', 'suffix for openstack')
+DEFINE_integer('osapi_max_limit', 1000,
+ 'max number of items returned in a collection response')
DEFINE_string('default_project', 'openstack', 'default project for openstack')
DEFINE_string('default_image', 'ami-11111',