From 4d13a0a3617bd186874395e28e92a5597c9f75d6 Mon Sep 17 00:00:00 2001 From: Jonathan Herlin Date: Sun, 9 Dec 2018 22:21:18 +0100 Subject: [PATCH] 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 --- ara/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ara/utils.py b/ara/utils.py index 241abc2c..7198f83b 100644 --- a/ara/utils.py +++ b/ara/utils.py @@ -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),