Merge "pep8 v1.3.3 compliance (bug 1019498)"
This commit is contained in:
commit
64aee0626b
@ -62,12 +62,16 @@ class StatsExtension(wsgi.ExtensionRouter):
|
||||
def add_routes(self, mapper):
|
||||
stats_controller = StatsController()
|
||||
|
||||
mapper.connect('/OS-STATS/stats', controller=stats_controller,
|
||||
action='get_stats',
|
||||
conditions=dict(method=['GET']))
|
||||
mapper.connect('/OS-STATS/stats', controller=stats_controller,
|
||||
action='reset_stats',
|
||||
conditions=dict(method=['DELETE']))
|
||||
mapper.connect(
|
||||
'/OS-STATS/stats',
|
||||
controller=stats_controller,
|
||||
action='get_stats',
|
||||
conditions=dict(method=['GET']))
|
||||
mapper.connect(
|
||||
'/OS-STATS/stats',
|
||||
controller=stats_controller,
|
||||
action='reset_stats',
|
||||
conditions=dict(method=['DELETE']))
|
||||
|
||||
|
||||
class StatsController(wsgi.Application):
|
||||
@ -80,7 +84,8 @@ class StatsController(wsgi.Application):
|
||||
|
||||
def get_stats(self, context):
|
||||
self.assert_admin(context)
|
||||
return {'OS-STATS:stats': [
|
||||
return {
|
||||
'OS-STATS:stats': [
|
||||
{
|
||||
'type': 'identity',
|
||||
'api': 'admin',
|
||||
|
@ -11,7 +11,7 @@ nose # for test discovery and console feedback
|
||||
nosexcover
|
||||
openstack.nose_plugin
|
||||
pylint # static code analysis
|
||||
pep8==1.1 # checks for PEP8 code style compliance
|
||||
pep8==1.3.3 # checks for PEP8 code style compliance
|
||||
Sphinx>=1.1.2 # required to build documentation
|
||||
unittest2 # backport of unittest lib in python 2.7
|
||||
webtest # test wsgi apps without starting an http server
|
||||
|
Loading…
Reference in New Issue
Block a user