Add brief docstring for the method DecortController.account_resource_groups

This commit is contained in:
2024-07-19 16:48:50 +03:00
parent 94586345a1
commit 3516843c41

View File

@@ -2207,6 +2207,11 @@ class DecortController(object):
vins_id: None | int = None,
vm_id: None | int = None,
) -> list[dict]:
"""
Implementation of functionality of the API method
`/cloudapi/account/listRG`.
"""
if rg_status and not rg_status in self.RESOURCE_GROUP_STATUSES:
self.result['msg'] = (
f'{rg_status} is not valid RG status for filtering'