mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix bug with returning results in IPA role (#3561)
* Fix bug with returning results in IPA role Fix #3560 * Add changelog * Fix typo in changelog * Update changelogs/fragments/3561-fix-ipa-host-var-detection.yml Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com> * Update changelogs/fragments/3561-fix-ipa-host-var-detection.yml Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com> * Update changelogs/fragments/3561-fix-ipa-host-var-detection.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
249d490f10
commit
191d2e08bb
2 changed files with 3 additions and 0 deletions
2
changelogs/fragments/3561-fix-ipa-host-var-detection.yml
Normal file
2
changelogs/fragments/3561-fix-ipa-host-var-detection.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- ipa_* modules - fix environment fallback for ``ipa_host`` option (https://github.com/ansible-collections/community.general/issues/3560).
|
|
@ -31,6 +31,7 @@ def _env_then_dns_fallback(*args, **kwargs):
|
|||
result = env_fallback(*args, **kwargs)
|
||||
if result == '':
|
||||
raise AnsibleFallbackNotFound
|
||||
return result
|
||||
except AnsibleFallbackNotFound:
|
||||
# If no host was given, we try to guess it from IPA.
|
||||
# The ipa-ca entry is a standard entry that IPA will have set for
|
||||
|
|
Loading…
Reference in a new issue