Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyzabbix/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ def _login(self, user='', password=''):
self.auth = None

if self.use_authenticate:
self.auth = self.user.authenticate(user=user, password=password)
self.auth = self.user.authenticate(username=user, password=password)
else:
self.auth = self.user.login(user=user, password=password)
self.auth = self.user.login(username=user, password=password)

def _logout(self):
"""Do logout from zabbix server."""
Expand Down