]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix linter complaints
authorJohn Spray <john.spray@redhat.com>
Fri, 27 Apr 2018 10:56:21 +0000 (06:56 -0400)
committerJohn Spray <john.spray@redhat.com>
Mon, 30 Apr 2018 13:27:49 +0000 (14:27 +0100)
commit5596f489dad762b5399bac087d8125b2ebfcf74f
tree6c218f30789a5230f96013d2405e8c97b4c9223c
parentb7a5da8bf085dba24795c11b3204286b4014fb6b
mgr/dashboard: fix linter complaints

In addition to line ordering, there were a couple of bogus ones:
E: 30, 0: No name 'version' in module 'distutils' (no-name-in-module)
E: 30, 0: Unable to import 'distutils.version' (import-error)
E: 36, 8: No name 'wsgiserver' in module 'cherrypy' (no-name-in-module)
E: 36, 8: Unable to import 'cherrypy.wsgiserver.wsgiserver2' (import-error)

I don't know why pylint can't see these modules, but they're definitely
there, so I've added them to the ignored list in .pylintrc

Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/mgr/dashboard/.pylintrc
src/pybind/mgr/dashboard/module.py