mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-11 14:35:06 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue