From 4b9cd0e0b0dd4b291f3c4fbf497733f9e0722def Mon Sep 17 00:00:00 2001 From: junboli Date: Tue, 10 Oct 2017 22:13:32 +0800 Subject: [PATCH] Add license for example code All python code should include Licensed under the Apache License, Version 2.0. This patch is to add apache license. Change-Id: I693826787d984b8976de8a10c2dbd5fc678876a1 --- .../python/openstack/create_thumbnail.py | 15 +++++++++++++++ .../python/openstack/get_swift_object.py | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/example/functions/python/openstack/create_thumbnail.py b/example/functions/python/openstack/create_thumbnail.py index 6e97c29a..3d3bbac3 100644 --- a/example/functions/python/openstack/create_thumbnail.py +++ b/example/functions/python/openstack/create_thumbnail.py @@ -1,3 +1,18 @@ +# Copyright 2017 Catalyst IT Limited +# +# 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 os from PIL import Image diff --git a/example/functions/python/openstack/get_swift_object.py b/example/functions/python/openstack/get_swift_object.py index 41332ca1..1b60499d 100644 --- a/example/functions/python/openstack/get_swift_object.py +++ b/example/functions/python/openstack/get_swift_object.py @@ -1,3 +1,18 @@ +# Copyright 2017 Catalyst IT Limited +# +# 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 swiftclient