summaryrefslogtreecommitdiffstats
path: root/utils/create_pod_file.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-05-09 22:02:14 -0400
committerxudan <xudan16@huawei.com>2017-05-09 22:53:09 -0400
commit5b5e2e6b0b26f5d938008ab640c032e6facb18b9 (patch)
tree724b9dec99b91b3dd9bc868bda3cc49e31894dcc /utils/create_pod_file.py
parent9156b12831162f63453d75376d8db0074266c658 (diff)
Bugfix: Error when create pod.yaml file
JIRA: DOVETAIL-426 os.path.makedirs(os.path.dirname(args.filepath)) AttributeError: 'module' object has no attribute 'makedirs' Change-Id: I2b75576f05b7926b76148ea6152e4479215344f5 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'utils/create_pod_file.py')
-rw-r--r--utils/create_pod_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/create_pod_file.py b/utils/create_pod_file.py
index 7e30cc639..197e4933c 100644
--- a/utils/create_pod_file.py
+++ b/utils/create_pod_file.py
@@ -58,7 +58,7 @@ def create_file(handler):
Other installers use key file of each node.
"""
if not os.path.exists(os.path.dirname(args.filepath)):
- os.path.makedirs(os.path.dirname(args.filepath))
+ os.makedirs(os.path.dirname(args.filepath))
nodes = handler.nodes
node_list = []
index = 1