mirror of
https://github.com/zahodi/ansible-mikrotik.git
synced 2025-06-21 01:25:47 +02:00
Make api authentication errors more verbose.
This commit is contained in:
parent
ea986d568b
commit
96527276e7
1 changed files with 2 additions and 2 deletions
|
@ -90,8 +90,8 @@ class MikrotikIdempotent():
|
|||
try:
|
||||
self.mk.login()
|
||||
self.login_success = True
|
||||
except:
|
||||
self.failed_msg = "Could not log into Mikrotik device." + " Check the username and password.",
|
||||
except Exception as e:
|
||||
self.failed_msg = "Could not log into Mikrotik device." + " Check the username and password. Exception {} - {}".format(type(e), e),
|
||||
else:
|
||||
self.failed_msg = "Could not access RouterOS api." + " Verify API service is enabled and not blocked by firewall.",
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue