mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-25 07:04:43 +00:00
fix failing Py test due to backend change (#10749)
This commit is contained in:
parent
218e07808a
commit
fb02cbfeed
@ -511,7 +511,9 @@ public abstract class EntityRepository<T extends EntityInterface> {
|
|||||||
setFieldsInternal(original, putFields);
|
setFieldsInternal(original, putFields);
|
||||||
|
|
||||||
EntityReference updatedOwner = updated.getOwner();
|
EntityReference updatedOwner = updated.getOwner();
|
||||||
if (updatedOwner != null && updatedOwner.getDescription().equals("inherited")) {
|
if (updatedOwner != null
|
||||||
|
&& updatedOwner.getDescription() != null
|
||||||
|
&& updatedOwner.getDescription().equals("inherited")) {
|
||||||
// Don't let inherited ownership overwrite existing ownership
|
// Don't let inherited ownership overwrite existing ownership
|
||||||
updated.setOwner(original.getOwner() != null ? original.getOwner() : updatedOwner);
|
updated.setOwner(original.getOwner() != null ? original.getOwner() : updatedOwner);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user