Fix Licence header missing issues 31/53931/4
authorZhijiang Hu <hu.zhijiang@zte.com.cn>
Fri, 16 Mar 2018 05:33:51 +0000 (13:33 +0800)
committerZhijiang Hu <hu.zhijiang@zte.com.cn>
Mon, 19 Mar 2018 06:54:38 +0000 (14:54 +0800)
Change-Id: I186f94b6e7580974a32a3c3c48fdc891b8445937
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
.gitignore
code/jasmine/autogen.sh
deploy/check_os_progress.sh
deploy/post/keystoneauth.py
deploy/trustme.sh
docs/development/requirements/multicast.rst
setup.py
tests/data/openrc_conf/admin-openrc.sh
tests/unit/test_daisy_server.py
tests/unit/test_environment.py
tests/unit/test_placeholder.py

index b636538..8d9f688 100644 (file)
@@ -9,7 +9,7 @@
 __pycache__/
 *.py[cod]
 *.confc
-
+.pytest_cache/
 # C extensions
 *.so
 
index 5bf25ec..d99fe58 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/sh
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
 # Run this to generate all the initial makefiles, etc.
 mkdir -p m4
 echo Building configuration system...
index fe45250..8f8e614 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+# hu.zhijiang@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
 usage()
 {
     cat << EOF
index 2d7d0e7..f3d25ae 100644 (file)
@@ -1,5 +1,5 @@
 ##############################################################################
-# Copyright (c) 2017 ZTE Coreporation and others.
+# Copyright (c) 2017 ZTE Corporation and others.
 # feng.xiaowei@zte.com.cn
 # All rights reserved. This program and the accompanying materials
 # are made available under the terms of the Apache License, Version 2.0
@@ -30,6 +30,8 @@ class Keystoneauth(object):
     def _parse_openrc(self):
 
         def parse_line(creds, line):
+            if line.startswith('#') or "=" not in line:
+                return creds
             var = line.rstrip('"\n').replace('export ', '').split("=")
             # The two next lines should be modified as soon as rc_file
             # conforms with common rules. Be aware that it could induce
index 38e2d83..1a599be 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/sh
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+# hu.zhijiang@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
 #to be trusted by other host and no password needed when use ssh command
 
 #check parameters legality
index ba314d3..fcce83a 100644 (file)
@@ -1,3 +1,6 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+
 Requirement
 ===========
 1. When deploying a large OPNFV/OpenStack cluster, we would like to take the advantage of UDP
index d556de7..3f40f4d 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,15 @@
 #!/usr/bin/env python
 
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+
 from setuptools import setup
 
 setup(
index 3db0bcf..2440fda 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
 export OS_PROJECT_DOMAIN_NAME=Default
 export OS_USER_DOMAIN_NAME=Default
 export OS_PROJECT_NAME=admin
index ea9c495..007279a 100644 (file)
@@ -1,3 +1,12 @@
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
 import os
 import pytest
 import mock
index f7cf598..a0b39ff 100644 (file)
@@ -1,3 +1,12 @@
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
 import os
 import copy
 import mock
index 457e464..a5298e1 100644 (file)
@@ -1,2 +1,11 @@
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
 def test_holder():
     assert True