mirror of
https://github.com/zahodi/ansible-mikrotik.git
synced 2025-07-16 05:04:22 +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:
|
try:
|
||||||
self.mk.login()
|
self.mk.login()
|
||||||
self.login_success = True
|
self.login_success = True
|
||||||
except:
|
except Exception as e:
|
||||||
self.failed_msg = "Could not log into Mikrotik device." + " Check the username and password.",
|
self.failed_msg = "Could not log into Mikrotik device." + " Check the username and password. Exception {} - {}".format(type(e), e),
|
||||||
else:
|
else:
|
||||||
self.failed_msg = "Could not access RouterOS api." + " Verify API service is enabled and not blocked by firewall.",
|
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