ceph/teuthology/locker/locker.py
2011-07-19 18:37:05 -07:00

20 lines
323 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
urls = (
'/lock', 'Lock',
'/lock/(.*)', 'MachineLock',
)
app = web.application(urls, globals())
application = app.wsgifunc()