aboutsummaryrefslogtreecommitdiffstats
path: root/process_conf.py
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-02-15 11:50:55 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-02-15 11:50:55 +0800
commit31abe8bc59d5ce2eed2269f12703ce575d2560db (patch)
tree1a5b8eb74bb4645c25e1493777a413deddc12f57 /process_conf.py
parent68f25c4b7147de79126c1cd8565cac1423967e45 (diff)
Add Open-O docker tag
1. support designate open-o image tag in conf/openo-vm.yml 2. add ubuntu image 12.04 Change-Id: If96a482eb12bc37799885bc290581257fe0c6817 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'process_conf.py')
-rw-r--r--process_conf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/process_conf.py b/process_conf.py
index 7693396..a28f809 100644
--- a/process_conf.py
+++ b/process_conf.py
@@ -18,6 +18,7 @@ def generate_vm_conf(vm_config, scripts_dir):
"""generate opera/work/scripts_dir/openo-vm.conf"""
print vm_config["openo"]["cpu"]
with open(scripts_dir + "/openo-vm.conf", "w") as fd:
+ fd.write("OPENO_TAG=" + str(vm_config["openo"]["tag"]) + "\n")
fd.write("OPENO_VIRT_CPUS=" + str(vm_config["openo"]["cpu"]) + "\n")
fd.write("OPENO_VIRT_MEM=" + str(vm_config["openo"]["memory"]) + "\n")
fd.write("OPENO_VIRT_DISK=" + str(vm_config["openo"]["disk"]) + "\n")