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:
parent
d6cb5ba1c9
commit
4d13a0a361
@ -154,7 +154,7 @@ def playbook_treeview(playbook):
|
||||
|
||||
paths = {}
|
||||
for file in files:
|
||||
fs.CreateFile(file.path)
|
||||
fs.create_file(file.path)
|
||||
paths[file.path] = file.id
|
||||
|
||||
return jsonutils.dumps(generate_tree('/', paths, mock_os),
|
||||
|
Loading…
Reference in New Issue
Block a user