diff --git a/ingestion/src/metadata/ingestion/sink/ldap_rest_users.py b/ingestion/src/metadata/ingestion/sink/ldap_rest_users.py index 996baed8861..a50783623a0 100644 --- a/ingestion/src/metadata/ingestion/sink/ldap_rest_users.py +++ b/ingestion/src/metadata/ingestion/sink/ldap_rest_users.py @@ -55,7 +55,7 @@ class LdapRestUsersSink(Sink): metadata_user = MetadataUser(name=record.github_username[0], display_name=record.name[0], email=record.email[0]) - self.rest.post(self.api_users, data=metadata_user.to_json(), headers=self.headers) + self.rest.post(self.api_users, data=metadata_user.to_json()) self.status.records_written(record.name[0]) def get_status(self): diff --git a/ingestion/src/metadata/ingestion/sink/metadata_rest_users.py b/ingestion/src/metadata/ingestion/sink/metadata_rest_users.py index 6b774ad2bfc..30f67a1dcfa 100644 --- a/ingestion/src/metadata/ingestion/sink/metadata_rest_users.py +++ b/ingestion/src/metadata/ingestion/sink/metadata_rest_users.py @@ -42,7 +42,6 @@ class MetadataRestUsersSink(Sink): self.api_team_post = "/teams" self.api_team_get = "/teams" self.api_users = "/users" - self.headers = {'Content-type': 'application/json'} self.org_entities = {} self.role_entities = {} self.team_entities = {}