ceph/teuthology/locker/locker.py
Zack Cerza 962a9ae2bb Add '# noqa' to suppress a linter error
Fixing this would require some more significant changes... and tempt me
with rewriting every module in the directory.
(cherry picked from commit 3fc39a59fd415a4e4e6f2a0354fe900477167e51)
2013-09-26 14:02:51 -05:00

20 lines
330 B
Python
Executable File

#!/usr/bin/env python
import os
import sys
import web
abspath = os.path.dirname(__file__)
if abspath not in sys.path:
sys.path.append(abspath)
from api import Lock, MachineLock # noqa
urls = (
'/lock', 'Lock',
'/lock/(.*)', 'MachineLock',
)
app = web.application(urls, globals())
application = app.wsgifunc()