From 6998dd7f6a2ed7c525a6251417fc34490ef488ca Mon Sep 17 00:00:00 2001 From: cgokey Date: Fri, 11 Mar 2022 14:40:30 -0500 Subject: [PATCH] MMT-2825: Updates based on feedback from POCLOUD (#1491) adding a value to the returned yaml file per request from POCLOUD Co-authored-by: htranho Co-authored-by: htranho <34069728+htranho@users.noreply.github.com> Co-authored-by: Thomas Cherry Co-authored-by: Chris Gokey Co-authored-by: Thomas Cherry --- tea-config-generator/tea/gen/utils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tea-config-generator/tea/gen/utils.py b/tea-config-generator/tea/gen/utils.py index 52396caf0f..461b835908 100644 --- a/tea-config-generator/tea/gen/utils.py +++ b/tea-config-generator/tea/gen/utils.py @@ -36,13 +36,14 @@ def add_to_dict(all_s3_prefix_groups_dict, s3_prefixes_set, group_names_set): def create_tea_config(all_s3_prefix_groups_dict): """ For given S3 prefixes groups dicionary creates the result string""" - result_string = '' + result_string = 'PRIVATE_BUCKETS:\n' for key, value in all_s3_prefix_groups_dict.items(): - result_string += key + result_string += ' '*2 + result_string += key.strip() result_string += ':\n' for group in value: - result_string += ' - ' # space space dash space - result_string += group + result_string += ' '*4 + '- '# 4x space dash space + result_string += group.strip() result_string += '\n' return result_string