Skip to content

Commit

Permalink
Update cid-cfn.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws authored Feb 28, 2024
1 parent 82bfd79 commit 77c8a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfn-templates/cid-cfn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ Resources:
pass # Do not fail delete
else:
raise Exception(f'CUR BucketPath={parts[0]} format is not recognized. It must be s3://(bucket)/cur or s3://(bucket)/(curprefix)/(curname)/(curname) ')
data['Partitions'] = [{"Name": p, "Type": "string"} for p in data['Partitions']]
data['Partitions'] = [{"Name": p, "Type": "string"} for p in data.get('Partitions', [])]
data['Path'] = '/'.join(parts[1:])
data['Folder'] = parts[-1] if len(parts) > 1 else ''
data['Folder'] = data['Folder'].replace('-', '_').lower() # this is used for a Glue table name that will be managed by crawler
Expand Down

0 comments on commit 77c8a50

Please sign in to comment.