8000 create user query - added quotes to username · aisch/influxdb-python@ffa9110 · GitHub
[go: up one dir, main page]

Skip to content

Commit ffa9110

Browse files
committed
create user query - added quotes to username
1 parent ee950de commit ffa9110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def create_user(self, username, password, admin=False):
650650
privileges or not
651651
:type admin: boolean
652652
"""
653-
text = "CREATE USER {0} WITH PASSWORD '{1}'".format(username, password)
653+
text = "CREATE USER \"{0}\" WITH PASSWORD '{1}'".format(username, password)
654654
if admin:
655655
text += ' WITH ALL PRIVILEGES'
656656
self.query(text)

0 commit comments

Comments
 (0)
0