Skip to content

Commit

Permalink
MMT-2825: Updates based on feedback from POCLOUD (#1491)
Browse files Browse the repository at this point in the history
adding a value to the returned yaml file per request from POCLOUD

Co-authored-by: htranho <[email protected]>
Co-authored-by: htranho <[email protected]>
Co-authored-by: Thomas Cherry <[email protected]>
Co-authored-by: Chris Gokey <[email protected]>
Co-authored-by: Thomas Cherry <[email protected]>
  • Loading branch information
6 people authored Mar 11, 2022
1 parent 340f182 commit 6998dd7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tea-config-generator/tea/gen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6998dd7

Please sign in to comment.