summaryrefslogtreecommitdiffstats
path: root/jjb/dovetail
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 /jjb/dovetail
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 'jjb/dovetail')
-rwxr-xr-xjjb/dovetail/dovetail-run.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh
index 5f462e9c3..cee9e5929 100755
--- a/jjb/dovetail/dovetail-run.sh
+++ b/jjb/dovetail/dovetail-run.sh
@@ -65,6 +65,11 @@ else
fi
pod_file_dir="/home/opnfv/dovetail/userconfig"
+if [ -d ${pod_file_dir} ]; then
+ sudo rm -r ${pod_file_dir}/*
+else
+ sudo mkdir -p ${pod_file_dir}
+fi
cmd="sudo python ${releng_repo}/utils/create_pod_file.py -t ${INSTALLER_TYPE} -i ${INSTALLER_IP} ${options} -f ${pod_file_dir}/pod.yaml"
echo ${cmd}
${cmd}