Merge "Add an external api for software sync"

This commit is contained in:
Zuul 2024-09-06 22:43:42 +00:00 committed by Gerrit Code Review
commit 4b203835b1

View File

@ -28,6 +28,7 @@ class DeployController(RestController):
'complete': ['POST'],
'delete': ['DELETE'],
'software_upgrade': ['GET'],
'software_sync': ['POST'],
}
@expose(method='POST', template='json')
@ -106,3 +107,9 @@ class DeployController(RestController):
@expose(method='GET', template='json')
def software_upgrade(self):
return sc.get_software_upgrade()
@expose(method='POST', template='json')
def software_sync(self):
reload_release_data()
result = sc.software_sync()
return {"result" : result}