Fix in_sync_controller endpoint
A bug was introduced by commit [1] that affected the endpoint /v1/software/in_sync_controller. As a consequence, host-swact was impacted. This commit fixes the endpoint. [1] https://review.opendev.org/c/starlingx/update/+/916597 Test Plan PASS: curl the endpoint /v1/software/in_sync_controller PASS: host-swact successfully Story: 2010676 Task: 50032 Change-Id: I68376d1998687fa6b7f87c8f57834bc322af6600 Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
parent
656dfcfbdc
commit
8c3872ae46
|
@ -23,7 +23,6 @@ class DeployController(RestController):
|
|||
'precheck': ['POST'],
|
||||
'start': ['POST'],
|
||||
'complete': ['POST'],
|
||||
'is_sync_controller': ['GET'],
|
||||
'software_upgrade': ['GET'],
|
||||
}
|
||||
|
||||
|
@ -74,10 +73,6 @@ class DeployController(RestController):
|
|||
result = sc.software_deploy_show_api(from_release, to_release)
|
||||
return result
|
||||
|
||||
@expose(method='GET', template='json')
|
||||
def in_sync_controller(self):
|
||||
return sc.in_sync_controller_api()
|
||||
|
||||
@expose(method='GET', template='json')
|
||||
def software_upgrade(self):
|
||||
return sc.get_software_upgrade()
|
||||
|
|
|
@ -14,6 +14,10 @@ LOG = logging.getLogger('main_logger')
|
|||
|
||||
|
||||
class SoftwareAPIController(RestController):
|
||||
_custom_actions = {
|
||||
"in_sync_controller": ["GET"],
|
||||
}
|
||||
|
||||
@expose(method='GET', template='json')
|
||||
def in_sync_controller(self):
|
||||
return sc.in_sync_controller_api()
|
||||
|
|
Loading…
Reference in New Issue