Browse Source

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
changes/98/510898/1
junboli 4 years ago
parent
commit
4b9cd0e0b0
  1. 15
      example/functions/python/openstack/create_thumbnail.py
  2. 15
      example/functions/python/openstack/get_swift_object.py

15
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

15
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

Loading…
Cancel
Save