Merge pull request #29563 from alprs/fix-influx_deprecated_method

Fix a call to deprecated method in python-influxdb
This commit is contained in:
Mike Place 2015-12-09 09:00:24 -07:00
commit 21437f9235
2 changed files with 2 additions and 2 deletions

View file

@ -221,7 +221,7 @@ def user_list(database=None, user=None, password=None, host=None, port=None):
client = _client(user=user, password=password, host=host, port=port)
if database:
client.switch_database(database)
return client.get_database_users()
return client.get_list_users()
return client.get_list_cluster_admins()

View file

@ -35,7 +35,7 @@ class MockInfluxDBClient(object):
def switch_database(self, name):
return name
def get_database_users(self):
def get_list_users(self):
return USER_LIST
def get_list_cluster_admins(self):