RCA API changes

Change-Id: I089e640286d997e8a8262bbb7f1dc2c7011f52c9
This commit is contained in:
Alexey Weyl 2016-10-05 16:03:15 +03:00
parent 1e3988be3c
commit 980b976bdf

View File

@ -31,6 +31,10 @@ LOG = log.getLogger(__name__)
class RCAController(RootRestController):
@pecan.expose('json')
def index(self, alarm_id):
return self.get(alarm_id)
@pecan.expose('json')
def get(self, alarm_id):
enforce('get rca', pecan.request.headers,
pecan.request.enforcer, {})