mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #29563 from alprs/fix-influx_deprecated_method
Fix a call to deprecated method in python-influxdb
This commit is contained in:
commit
21437f9235
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue