mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-26 01:23:16 +00:00
fix(ingest): nifi - replace hardcode password with config variable (#3902)
Co-authored-by: Shirshanka Das <shirshanka@apache.org>
This commit is contained in:
parent
80c46f24ac
commit
d5ef7cefa2
@ -310,7 +310,10 @@ class NifiSource(Source):
|
||||
), "Config password is required for SINGLE_USER auth"
|
||||
token_response = self.session.post(
|
||||
url=urljoin(self.config.site_url, TOKEN_ENDPOINT),
|
||||
data={"username": self.config.username, "password": "admin@datahub"},
|
||||
data={
|
||||
"username": self.config.username,
|
||||
"password": self.config.password,
|
||||
},
|
||||
)
|
||||
if not token_response.ok:
|
||||
logger.error("Failed to get token")
|
||||
|
Loading…
x
Reference in New Issue
Block a user