From f25f76e4926d7be880dbfb583b5a10c22f751973 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Mon, 7 Nov 2016 13:06:48 +0700 Subject: [PATCH] Add Apache 2.0 license to source file As per OpenStack licensing guide lines [1]: [H102 H103] Newly contributed Source Code should be licensed under the Apache 2.0 license. [H104] Files with no code shouldn't contain any license header nor comments, and must be left completely empty. [1] http://docs.openstack.org/developer/hacking/#openstack-licensing Change-Id: I72247b1a4b1efdc329d424e269600793b29e5428 --- deploy/libvirt-qemu-hook.py | 13 +++++++++++++ .../puppet/octane_tasks/files/delete_section.py | 12 ++++++++++++ octane/tests/generate_test_nets.py | 12 ++++++++++++ 3 files changed, 37 insertions(+) diff --git a/deploy/libvirt-qemu-hook.py b/deploy/libvirt-qemu-hook.py index 790723ec..fb466ccb 100755 --- a/deploy/libvirt-qemu-hook.py +++ b/deploy/libvirt-qemu-hook.py @@ -1,4 +1,17 @@ #!/usr/bin/python3 + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + # Taken from https://github.com/nileshgr/utilities/blob/master/admin/libvirt-qemu-hook.py ''' diff --git a/deployment/puppet/octane_tasks/files/delete_section.py b/deployment/puppet/octane_tasks/files/delete_section.py index 3e55875d..c70c6fe5 100644 --- a/deployment/puppet/octane_tasks/files/delete_section.py +++ b/deployment/puppet/octane_tasks/files/delete_section.py @@ -1,5 +1,17 @@ #!/usr/bin/python +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import yaml import sys diff --git a/octane/tests/generate_test_nets.py b/octane/tests/generate_test_nets.py index 3b64737d..c1225529 100644 --- a/octane/tests/generate_test_nets.py +++ b/octane/tests/generate_test_nets.py @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import random import time