ansible_freeipa_module: Add ansible module argument to valid_creds function

For debug and error reporting it is needed to have the ansible module also
in the valid_creds function.
This commit is contained in:
Thomas Woerner
2019-08-12 18:33:34 +02:00
parent 455ca83ef5
commit c69d0bc53f
4 changed files with 5 additions and 5 deletions

View File

@@ -272,7 +272,7 @@ def main():
ccache_dir = None
ccache_name = None
try:
if not valid_creds(ipaadmin_principal):
if not valid_creds(ansible_module, ipaadmin_principal):
ccache_dir, ccache_name = temp_kinit(ipaadmin_principal,
ipaadmin_password)
api_connect()