From 3aa4b38dd6cb8e41234ddb0161b5dbc7edaf2ebd Mon Sep 17 00:00:00 2001 From: Philipp Kilian Date: Tue, 18 Jul 2023 11:18:50 +0200 Subject: [PATCH] management: expand gettenantsecrets command with recording --- b3lb/rest/management/commands/gettenantsecrets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b3lb/rest/management/commands/gettenantsecrets.py b/b3lb/rest/management/commands/gettenantsecrets.py index 94e91ad..c83f3b7 100644 --- a/b3lb/rest/management/commands/gettenantsecrets.py +++ b/b3lb/rest/management/commands/gettenantsecrets.py @@ -21,12 +21,12 @@ class Command(BaseCommand): - help = 'Get first secret and hostnames of tenants.' + help = 'Get secrets, endpoints and if recording is enabled.' def handle(self, *args, **options): tenant_dict = {} for secret in Secret.objects.all(): - tenant_dict["{}-{}".format(secret.tenant.slug, str(secret.sub_id).zfill(3))] = {"secret": secret.secret, "hostname": secret.endpoint} + tenant_dict["{}-{}".format(secret.tenant.slug, str(secret.sub_id).zfill(3))] = {"secret": secret.secret, "hostname": secret.endpoint, "recording": secret.is_record_enabled} self.stdout.write(json.dumps(tenant_dict))