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
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>
(cherry picked from commit 191d2e08bb
)
Co-authored-by: Sergey <sshnaidm@users.noreply.github.com>
This commit is contained in:
parent
72e0d8c310
commit
f006aa4cf6
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)
|
result = env_fallback(*args, **kwargs)
|
||||||
if result == '':
|
if result == '':
|
||||||
raise AnsibleFallbackNotFound
|
raise AnsibleFallbackNotFound
|
||||||
|
return result
|
||||||
except AnsibleFallbackNotFound:
|
except AnsibleFallbackNotFound:
|
||||||
# If no host was given, we try to guess it from IPA.
|
# 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
|
# The ipa-ca entry is a standard entry that IPA will have set for
|
||||||
|
|
Loading…
Reference in a new issue