Skip to content

Commit

Permalink
Fix linting errors related to missing config section
Browse files Browse the repository at this point in the history
  • Loading branch information
enykeev authored and Kirill Izotov committed Aug 2, 2016
1 parent d7be054 commit 774f313
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion st2api/st2api/controllers/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class ResourceController(rest.RestController):
from_model_kwargs = {}

# Maximum value of limit which can be specified by user
max_limit = cfg.CONF.api.max_page_size
@property
def max_limit(self):
return cfg.CONF.api.max_page_size

# Default number of items returned per page if no limit is explicitly provided
default_limit = 100
Expand Down

0 comments on commit 774f313

Please sign in to comment.