From ffa91103498c78536e0fa742f90191ed8b829801 Mon Sep 17 00:00:00 2001 From: Michal Kren Date: Sat, 30 Jan 2016 18:13:15 +0100 Subject: [PATCH 1/2] create user query - added quotes to username --- influxdb/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb/client.py b/influxdb/client.py index efb9b761..dc1419b4 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -650,7 +650,7 @@ def create_user(self, username, password, admin=False): privileges or not :type admin: boolean """ - text = "CREATE USER {0} WITH PASSWORD '{1}'".format(username, password) + text = "CREATE USER \"{0}\" WITH PASSWORD '{1}'".format(username, password) if admin: text += ' WITH ALL PRIVILEGES' self.query(text) From fe30159b9e62044120ac3c269c2e153d88ba830b Mon Sep 17 00:00:00 2001 From: Michal Kren Date: Sat, 30 Jan 2016 18:31:36 +0100 Subject: [PATCH 2/2] line was too long > 79 chars - fixed --- influxdb/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/influxdb/client.py b/influxdb/client.py index dc1419b4..8146d68d 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -650,7 +650,8 @@ def create_user(self, username, password, admin=False): privileges or not :type admin: boolean """ - text = "CREATE USER \"{0}\" WITH PASSWORD '{1}'".format(username, password) + text = "CREATE USER \"{0}\" WITH PASSWORD '{1}'".format(username, + password) if admin: text += ' WITH ALL PRIVILEGES' self.query(text) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy