mirror of https://github.com/ansible/ansible.git
[bp-2.12] hostname - fix TypeError in FileStrategy (#77365)
* Use file_get_content() to read the file containing the host name
(cherry picked from commit d60efd9768)
Signed-off-by: Emmanuel Benoît <tseeker@nocternity.net>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Emmanuel Benoît <tseeker@nocternity.net>
pull/77543/head
parent
8bbcfebd5c
commit
2ce5d99e83
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- hostname - use ``file_get_content()`` to read the file containing the host name in the ``FileStrategy.get_permanent_hostname()`` method. This prevents a ``TypeError`` from being raised when the strategy is used (https://github.com/ansible/ansible/issues/77025).
|
||||
Loading…
Reference in New Issue