Fix in_sync_controller endpoint respond decode err
This is to remove the unnecessary routing based on request method in which the respond can't be decoded properly by the sm-api Test Plan: PASS: run system host-swact Task: 49661 Story: 2010676 Change-Id: Ife8862b7d5666de3a3dafff582dbb4c27e1adafa Signed-off-by: junfeng-li <junfeng.li@windriver.com>
This commit is contained in:
parent
e2112227d6
commit
88e95d5c1f
|
@ -23,10 +23,6 @@ LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
class SoftwareAPIController(object):
|
class SoftwareAPIController(object):
|
||||||
|
|
||||||
@expose(generic=True, template='json')
|
|
||||||
def index(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
@expose('json')
|
@expose('json')
|
||||||
def commit_patch(self, *args):
|
def commit_patch(self, *args):
|
||||||
try:
|
try:
|
||||||
|
@ -244,6 +240,6 @@ class SoftwareAPIController(object):
|
||||||
return dict(error=str(e))
|
return dict(error=str(e))
|
||||||
return dict(data=query_hosts)
|
return dict(data=query_hosts)
|
||||||
|
|
||||||
@index.when(method='GET', template='json')
|
@expose(method='GET', template='json')
|
||||||
def in_sync_controller(self):
|
def in_sync_controller(self):
|
||||||
return sc.in_sync_controller_api()
|
return sc.in_sync_controller_api()
|
||||||
|
|
Loading…
Reference in New Issue