mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Reformat everything.
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import traceback
|
||||
|
||||
try:
|
||||
from pylxca import connect, disconnect
|
||||
|
||||
HAS_PYLXCA = True
|
||||
except ImportError:
|
||||
HAS_PYLXCA = False
|
||||
@@ -59,12 +61,11 @@ def setup_conn(module):
|
||||
"""
|
||||
lxca_con = None
|
||||
try:
|
||||
lxca_con = connect(module.params['auth_url'],
|
||||
module.params['login_user'],
|
||||
module.params['login_password'],
|
||||
"True")
|
||||
lxca_con = connect(
|
||||
module.params["auth_url"], module.params["login_user"], module.params["login_password"], "True"
|
||||
)
|
||||
except Exception as exception:
|
||||
error_msg = '; '.join(exception.args)
|
||||
error_msg = "; ".join(exception.args)
|
||||
module.fail_json(msg=error_msg, exception=traceback.format_exc())
|
||||
return lxca_con
|
||||
|
||||
|
||||
Reference in New Issue
Block a user