mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852)
This commit is contained in:
committed by
James Cammarata
parent
2d0e9cd75d
commit
658c15930e
@@ -199,7 +199,7 @@ def main():
|
||||
if login_user is not None and login_password is not None:
|
||||
client.admin.authenticate(login_user, login_password)
|
||||
|
||||
except ConnectionFailure as e:
|
||||
except ConnectionFailure, e:
|
||||
module.fail_json(msg='unable to connect to database, check login_user and login_password are correct')
|
||||
|
||||
if state == 'present':
|
||||
|
||||
Reference in New Issue
Block a user