fixed response body Restore actions
parent
b5cde605d7
commit
06b2892e84
|
@ -272,5 +272,4 @@ class CostFileRestore:
|
|||
except Exception as ex:
|
||||
raise falcon.HTTPError(falcon.HTTP_400, title='API.ERROR',
|
||||
description='API.FAILED_TO_RESTORE_COST_FILE')
|
||||
resp.body = 'success'
|
||||
resp.status = falcon.HTTP_200
|
||||
resp.body = json.dumps('success')
|
||||
|
|
|
@ -319,6 +319,5 @@ class KnowledgeFileRestore:
|
|||
except Exception as ex:
|
||||
raise falcon.HTTPError(falcon.HTTP_400, title='API.ERROR',
|
||||
description='API.FAILED_TO_RESTORE_KNOWLEDGE_FILE')
|
||||
resp.body = 'success'
|
||||
resp.status = falcon.HTTP_200
|
||||
resp.body = json.dumps('success')
|
||||
|
||||
|
|
|
@ -272,5 +272,4 @@ class OfflineMeterFileRestore:
|
|||
except Exception as ex:
|
||||
raise falcon.HTTPError(falcon.HTTP_400, title='API.ERROR',
|
||||
description='API.FAILED_TO_RESTORE_OFFLINE_METER_FILE')
|
||||
resp.body = 'success'
|
||||
resp.status = falcon.HTTP_200
|
||||
resp.body = json.dumps('success')
|
||||
|
|
Loading…
Reference in New Issue