7d3869f6e48ae97a67ddb7bd8c297616dc33b174

To better apply obligatory decorators like db_session_cleanup, this commit modifies db_session_cleanup to be a class decorator. Test plan: - PASS: Build a custom ISO with the changes and deploy a DX system controller and a SX subcloud. Verify the system works as expected. - PASS: Manage a subcloud and verify the sync_status is "in-sync". - PASS: Unmanage a subcloud and verify the management status was updated to "unmanaged". - PASS: Run "dcmanager subcloud show <subcloud_name> --detail" and verify the output is correct. - PASS: Run "sudo dcorch-manage db_clean 0" and verify old jobs were successfully purged. - PASS: Verify no errors were observed on dcmanager or dcorch logs. - PASS: Verify no connections were stuck in "idle in transaction" state. Story: 2011311 Task: 51895 Change-Id: I69fe12415783a7e949fe74871784c01db35672cf Signed-off-by: Victor Romano <victor.gluzromano@windriver.com>
Description
StarlingX Distributed Cloud
Languages
Python
95.2%
Shell
4.6%
Makefile
0.2%