mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
Automatic style fix
This commit is contained in:
parent
45d190650f
commit
d56cd41395
@ -238,10 +238,12 @@ class SourceMongo(ExternalSource):
|
||||
|
||||
self.db = self.connection["test"]
|
||||
user_info = self.db.command("usersInfo", self.user)
|
||||
if user_info['users']:
|
||||
if user_info["users"]:
|
||||
self.db.command("updateUser", self.user, pwd=self.password)
|
||||
else:
|
||||
self.db.command("createUser", self.user, pwd=self.password, roles=["readWrite"])
|
||||
self.db.command(
|
||||
"createUser", self.user, pwd=self.password, roles=["readWrite"]
|
||||
)
|
||||
self.prepared = True
|
||||
|
||||
def load_data(self, data, table_name):
|
||||
|
Loading…
Reference in New Issue
Block a user