Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
leonidastri committed Sep 27, 2024
1 parent f2292e8 commit 077a653
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,9 @@ def group_create(ctx, group_name, category, subcategory, schema_id, expiration_d
if not sram.sram_connect_service_collaboration(ctx, short_name):
return api.Error('sram_error', 'Something went wrong connecting service to group "{}" in SRAM'.format(group_name))

if ctx.uuGroupExists(group_name):
return api.Error('group_exists', "Group {} not created, it already exists".format(group_name))

response = ctx.uuGroupAdd(group_name, category, subcategory, schema_id, expiration_date, description, data_classification, co_identifier, '', '')['arguments']
status = response[8]
message = response[9]
Expand Down

0 comments on commit 077a653

Please sign in to comment.