mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 11:39:12 +00:00
fix: declaring self.data after calling self.token (#10634)
This commit is contained in:
parent
fadefff3e1
commit
9d858ede3a
@ -52,12 +52,12 @@ class NifiClient:
|
||||
self.password = password
|
||||
|
||||
if all(setting for setting in [self.username, self.password]):
|
||||
self.data = f"username={self.username}&password={self.password}"
|
||||
self.verify = verify
|
||||
self.headers = {
|
||||
"Authorization": f"Bearer {self.token}",
|
||||
**self.content_headers,
|
||||
}
|
||||
self.data = f"username={self.username}&password={self.password}"
|
||||
self.client_cert = None
|
||||
else:
|
||||
self.data = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user