summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Scherer <mscherer@users.noreply.github.com>2016-08-30 19:47:41 +0200
committerToshio Kuratomi <a.badger@gmail.com>2016-08-30 10:47:41 -0700
commitadcb87f781f8f1e9efebb8aa757d42a6370b7589 (patch)
tree9c6a22165c8f54c42008e20bbadb9e0c776a724c
parent9245c786db2493b164f9be0cfe60cf6dff40225e (diff)
downloadansible-adcb87f781f8f1e9efebb8aa757d42a6370b7589.tar.gz
file() function in python3 no longer exist, so use open() (#17303)
-rw-r--r--lib/ansible/plugins/action/assemble.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/assemble.py b/lib/ansible/plugins/action/assemble.py
index 13a02a8855..d40067aac7 100644
--- a/lib/ansible/plugins/action/assemble.py
+++ b/lib/ansible/plugins/action/assemble.py
@@ -49,7 +49,7 @@ class ActionModule(ActionBase):
if not os.path.isfile(fragment) or (ignore_hidden and os.path.basename(fragment).startswith('.')):
continue
- fragment_content = file(self._loader.get_real_file(fragment)).read()
+ fragment_content = open(self._loader.get_real_file(fragment)).read()
# always put a newline between fragments if the previous fragment didn't end with a newline.
if add_newline: