Merge "Fix create flavor error"
authorFu Jinhua <fu.jinhua@zte.com.cn>
Thu, 2 Aug 2018 07:02:32 +0000 (07:02 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 2 Aug 2018 07:02:32 +0000 (07:02 +0000)
lcm/docker/Dockerfile
lcm/lcm/nf/vnf_create/inst_vnf.py

index 8597e40..cebfcd6 100755 (executable)
@@ -6,6 +6,9 @@ ARG HTTPS_PROXY=${HTTPS_PROXY}
 ENV http_proxy $HTTP_PROXY
 ENV https_proxy $HTTPS_PROXY
 
+RUN sed -i "s|set compatible|set nocompatible|" /etc/vim/vimrc.tiny \ &
+    echo "set backspace=2" >> /etc/vim/vimrc.tiny
+
 RUN echo "mysql-server mysql-server/root_password password root" | debconf-set-selections
 RUN echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections
 
index 9ae2515..b87602c 100644 (file)
@@ -338,7 +338,7 @@ def flavor_save(job_id, nf_inst_id, ret):
         swap=get_integer(ignore_case_get(ret, "swap")),
         isPublic=get_boolean(ignore_case_get(ret, "isPublic")),
         extraspecs=ignore_case_get(ret, "extraSpecs"),
-        is_predefined=ignore_case_get(ret, "returnCode"),
+        is_predefined=ret.get("returnCode", int(0)),
         instid=nf_inst_id)