Change from fs.CreateFile to fs.create_file

This patch makes sure that we're not hitting the deprecated function
"fs.CreateFile" anymore by using "fs.create_file" instead.

----
/tmp/ansible/local/lib/python2.7/site-packages/ara/utils.py:157: DeprecationWarning: Call to deprecated function CreateFile. Use create_file instead.
fs.CreateFile(file.path)

Change-Id: Ic9743c049a2c35607681b25936dca9e7e8749042
This commit is contained in:
Jonathan Herlin 2018-12-09 22:21:18 +01:00
parent d6cb5ba1c9
commit 4d13a0a361

View File

@ -154,7 +154,7 @@ def playbook_treeview(playbook):
paths = {} paths = {}
for file in files: for file in files:
fs.CreateFile(file.path) fs.create_file(file.path)
paths[file.path] = file.id paths[file.path] = file.id
return jsonutils.dumps(generate_tree('/', paths, mock_os), return jsonutils.dumps(generate_tree('/', paths, mock_os),