Implement functionality of the API method /cloudapi/account/audits in the module decort_account_info

This commit is contained in:
2024-07-24 14:23:35 +03:00
parent fe1e8a32f9
commit 3c6ce85dba
3 changed files with 54 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ class DecortAccountInfo(DecortController):
self.id, self.facts = self.account_find(
account_name=amodule.params['name'],
account_id=amodule.params['id'],
audits=amodule.params['audits'],
computes_args=self.mapped_computes_args,
disks_args=self.mapped_disks_args,
flip_groups_args=self.mapped_flip_groups_args,
@@ -54,6 +55,10 @@ class DecortAccountInfo(DecortController):
fallback=(env_fallback, ['DECORT_APP_SECRET']),
no_log=True
),
audits=dict(
type='bool',
default=False
),
authenticator=dict(
type='str',
required=True,