Skip to content

Commit dbe3016

Browse files
committed
log metadata def - errors are when there are duplicates
1 parent 55a54bb commit dbe3016

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/migration/migrate_metadata_definitions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,12 @@ def post_metadata_definition(
142142
)
143143

144144
if response.status_code == 200:
145+
print(
146+
f"Success posting metadata definition. Metadata name: {v2_metadata['name']}"
147+
)
145148
return response.json().get("id")
146149
else:
150+
print(f"Error posting metadata, definitio, name: {v2_metadata['name']}")
147151
print(
148152
f"Failed to post metadata definition. Status code: {response.status_code}"
149153
)

0 commit comments

Comments
 (0)