Fix #1749: Location is missing some fields (#1751)

This commit is contained in:
Alberto Miorin 2021-12-14 20:55:13 +01:00 committed by GitHub
parent 5a8c70bbe9
commit 5c56d479d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,8 @@ class MetadataRestSink(Sink[Entity]):
location_request = CreateLocationEntityRequest(
name=db_and_table.location.name,
description=db_and_table.location.description.strip(),
locationType=db_and_table.location.locationType,
owner=db_and_table.location.owner,
service=EntityReference(
id=db_and_table.location.service.id,
type="storageService",
@ -288,7 +290,6 @@ class MetadataRestSink(Sink[Entity]):
name=location.name,
description=location.description,
locationType=location.locationType,
tags=location.tags,
owner=location.owner,
service=location.service,
)