GeezerVison is showing github.com — Fixing license headers in the python folder · Skotha/cloudstack@da45ae1
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: python/bindir/cloud-external-ipallocator.py +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #! /usr/bin/python | 2 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 3 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 4 | | -# file except in compliance with the License. Citrix Systems, Inc. | 5 | | -# reserves all rights not expressly granted by the License. | 6 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 7 | | -# Unless required by applicable law or agreed to in writing, software | 8 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 9 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 10 | | -# See the License for the specific language governing permissions and | 11 | | -# limitations under the License. | | 2 | +# Licensed to the Apache Software Foundation (ASF) under one | | 3 | +# or more contributor license agreements. See the NOTICE file | | 4 | +# distributed with this work for additional information | | 5 | +# regarding copyright ownership. The ASF licenses this file | | 6 | +# to you under the Apache License, Version 2.0 (the | | 7 | +# "License"); you may not use this file except in compliance | | 8 | +# with the License. You may obtain a copy of the License at | 12 | 9 | # | 13 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 10 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 11 | +# | | 12 | +# Unless required by applicable law or agreed to in writing, | | 13 | +# software distributed under the License is distributed on an | | 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 15 | +# KIND, either express or implied. See the License for the | | 16 | +# specific language governing permissions and limitations | | 17 | +# under the License. | 14 | 18 |
| 15 | 19 |
| 16 | 20 |
| |
Collapse file Copy file name to clipboardExpand all lines: python/bindir/cloud-setup-baremetal +16-12Lines changed: 16 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #!/usr/bin/python | 2 | | -# | 3 | | - | 4 | | -#copyright 2012 Citrix Systems, Inc. Licensed under the | 5 | | -#Apache License, Version 2.0 (the "License"); you may not use this | 6 | | -#file except in compliance with the License. Citrix Systems, Inc. | 7 | | -#reserves all rights not expressly granted by the License. | 8 | | -#You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 9 | | -#Unless required by applicable law or agreed to in writing, software | 10 | | -#distributed under the License is distributed on an "AS IS" BASIS, | 11 | | -#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | | -#See the License for the specific language governing permissions and | 13 | | -#limitations under the License. | | 2 | +# Licensed to the Apache Software Foundation (ASF) under one | | 3 | +# or more contributor license agreements. See the NOTICE file | | 4 | +# distributed with this work for additional information | | 5 | +# regarding copyright ownership. The ASF licenses this file | | 6 | +# to you under the Apache License, Version 2.0 (the | | 7 | +# "License"); you may not use this file except in compliance | | 8 | +# with the License. You may obtain a copy of the License at | | 9 | +# | | 10 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 11 | +# | | 12 | +# Unless required by applicable law or agreed to in writing, | | 13 | +# software distributed under the License is distributed on an | | 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 15 | +# KIND, either express or implied. See the License for the | | 16 | +# specific language governing permissions and limitations | | 17 | +# under the License. | 14 | 18 |
| 15 | 19 | import sys, os | 16 | 20 | from subprocess import PIPE, Popen | |
Collapse file Copy file name to clipboardExpand all lines: python/incubation/cloud-web-ipallocator.py +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #! /usr/bin/python | 2 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 3 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 4 | | -# file except in compliance with the License. Citrix Systems, Inc. | 5 | | -# reserves all rights not expressly granted by the License. | 6 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 7 | | -# Unless required by applicable law or agreed to in writing, software | 8 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 9 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 10 | | -# See the License for the specific language governing permissions and | 11 | | -# limitations under the License. | | 2 | +# Licensed to the Apache Software Foundation (ASF) under one | | 3 | +# or more contributor license agreements. See the NOTICE file | | 4 | +# distributed with this work for additional information | | 5 | +# regarding copyright ownership. The ASF licenses this file | | 6 | +# to you under the Apache License, Version 2.0 (the | | 7 | +# "License"); you may not use this file except in compliance | | 8 | +# with the License. You may obtain a copy of the License at | 12 | 9 | # | 13 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 10 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 11 | +# | | 12 | +# Unless required by applicable law or agreed to in writing, | | 13 | +# software distributed under the License is distributed on an | | 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 15 | +# KIND, either express or implied. See the License for the | | 16 | +# specific language governing permissions and limitations | | 17 | +# under the License. | 14 | 18 |
| 15 | 19 |
| 16 | 20 |
| |
Collapse file Copy file name to clipboardExpand all lines: python/lib/cloud_utils.py +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #!/usr/bin/env python | 2 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 3 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 4 | | -# file except in compliance with the License. Citrix Systems, Inc. | 5 | | -# reserves all rights not expressly granted by the License. | 6 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 7 | | -# Unless required by applicable law or agreed to in writing, software | 8 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 9 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 10 | | -# See the License for the specific language governing permissions and | 11 | | -# limitations under the License. | | 2 | +# Licensed to the Apache Software Foundation (ASF) under one | | 3 | +# or more contributor license agreements. See the NOTICE file | | 4 | +# distributed with this work for additional information | | 5 | +# regarding copyright ownership. The ASF licenses this file | | 6 | +# to you under the Apache License, Version 2.0 (the | | 7 | +# "License"); you may not use this file except in compliance | | 8 | +# with the License. You may obtain a copy of the License at | 12 | 9 | # | 13 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 10 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 11 | +# | | 12 | +# Unless required by applicable law or agreed to in writing, | | 13 | +# software distributed under the License is distributed on an | | 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 15 | +# KIND, either express or implied. See the License for the | | 16 | +# specific language governing permissions and limitations | | 17 | +# under the License. | 14 | 18 |
| 15 | 19 |
| 16 | 20 |
| |
Collapse file Copy file name to clipboard +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 2 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 3 | | -# file except in compliance with the License. Citrix Systems, Inc. | 4 | | -# reserves all rights not expressly granted by the License. | 5 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 6 | | -# Unless required by applicable law or agreed to in writing, software | 7 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 8 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 9 | | -# See the License for the specific language governing permissions and | 10 | | -# limitations under the License. | | 1 | +# Licensed to the Apache Software Foundation (ASF) under one | | 2 | +# or more contributor license agreements. See the NOTICE file | | 3 | +# distributed with this work for additional information | | 4 | +# regarding copyright ownership. The ASF licenses this file | | 5 | +# to you under the Apache License, Version 2.0 (the | | 6 | +# "License"); you may not use this file except in compliance | | 7 | +# with the License. You may obtain a copy of the License at | 11 | 8 | # | 12 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 9 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 10 | +# | | 11 | +# Unless required by applicable law or agreed to in writing, | | 12 | +# software distributed under the License is distributed on an | | 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 14 | +# KIND, either express or implied. See the License for the | | 15 | +# specific language governing permissions and limitations | | 16 | +# under the License. |
Collapse file Copy file name to clipboardExpand all lines: python/lib/cloudutils/cloudException.py +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 2 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 3 | | -# file except in compliance with the License. Citrix Systems, Inc. | 4 | | -# reserves all rights not expressly granted by the License. | 5 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 6 | | -# Unless required by applicable law or agreed to in writing, software | 7 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 8 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 9 | | -# See the License for the specific language governing permissions and | 10 | | -# limitations under the License. | | 1 | +# Licensed to the Apache Software Foundation (ASF) under one | | 2 | +# or more contributor license agreements. See the NOTICE file | | 3 | +# distributed with this work for additional information | | 4 | +# regarding copyright ownership. The ASF licenses this file | | 5 | +# to you under the Apache License, Version 2.0 (the | | 6 | +# "License"); you may not use this file except in compliance | | 7 | +# with the License. You may obtain a copy of the License at | 11 | 8 | # | 12 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 9 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 10 | +# | | 11 | +# Unless required by applicable law or agreed to in writing, | | 12 | +# software distributed under the License is distributed on an | | 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 14 | +# KIND, either express or implied. See the License for the | | 15 | +# specific language governing permissions and limitations | | 16 | +# under the License. | 13 | 17 | import sys | 14 | 18 | import traceback | 15 | 19 | class CloudRuntimeException(Exception): | |
Collapse file Copy file name to clipboardExpand all lines: python/lib/cloudutils/configFileOps.py +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 2 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 3 | | -# file except in compliance with the License. Citrix Systems, Inc. | 4 | | -# reserves all rights not expressly granted by the License. | 5 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 6 | | -# Unless required by applicable law or agreed to in writing, software | 7 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 8 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 9 | | -# See the License for the specific language governing permissions and | 10 | | -# limitations under the License. | | 1 | +# Licensed to the Apache Software Foundation (ASF) under one | | 2 | +# or more contributor license agreements. See the NOTICE file | | 3 | +# distributed with this work for additional information | | 4 | +# regarding copyright ownership. The ASF licenses this file | | 5 | +# to you under the Apache License, Version 2.0 (the | | 6 | +# "License"); you may not use this file except in compliance | | 7 | +# with the License. You may obtain a copy of the License at | 11 | 8 | # | 12 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 9 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 10 | +# | | 11 | +# Unless required by applicable law or agreed to in writing, | | 12 | +# software distributed under the License is distributed on an | | 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 14 | +# KIND, either express or implied. See the License for the | | 15 | +# specific language governing permissions and limitations | | 16 | +# under the License. | 13 | 17 | import re | 14 | 18 | import tempfile | 15 | 19 | import shutil | |
Collapse file Copy file name to clipboardExpand all lines: python/lib/cloudutils/db.py +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 2 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 3 | | -# file except in compliance with the License. Citrix Systems, Inc. | 4 | | -# reserves all rights not expressly granted by the License. | 5 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 6 | | -# Unless required by applicable law or agreed to in writing, software | 7 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 8 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 9 | | -# See the License for the specific language governing permissions and | 10 | | -# limitations under the License. | | 1 | +# Licensed to the Apache Software Foundation (ASF) under one | | 2 | +# or more contributor license agreements. See the NOTICE file | | 3 | +# distributed with this work for additional information | | 4 | +# regarding copyright ownership. The ASF licenses this file | | 5 | +# to you under the Apache License, Version 2.0 (the | | 6 | +# "License"); you may not use this file except in compliance | | 7 | +# with the License. You may obtain a copy of the License at | 11 | 8 | # | 12 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 9 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 10 | +# | | 11 | +# Unless required by applicable law or agreed to in writing, | | 12 | +# software distributed under the License is distributed on an | | 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 14 | +# KIND, either express or implied. See the License for the | | 15 | +# specific language governing permissions and limitations | | 16 | +# under the License. | 13 | 17 | import MySQLdb | 14 | 18 | import os | 15 | 19 | from utilities import bash | |
Collapse file Copy file name to clipboardExpand all lines: python/lib/cloudutils/globalEnv.py +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 2 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 3 | | -# file except in compliance with the License. Citrix Systems, Inc. | 4 | | -# reserves all rights not expressly granted by the License. | 5 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 6 | | -# Unless required by applicable law or agreed to in writing, software | 7 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 8 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 9 | | -# See the License for the specific language governing permissions and | 10 | | -# limitations under the License. | | 1 | +# Licensed to the Apache Software Foundation (ASF) under one | | 2 | +# or more contributor license agreements. See the NOTICE file | | 3 | +# distributed with this work for additional information | | 4 | +# regarding copyright ownership. The ASF licenses this file | | 5 | +# to you under the Apache License, Version 2.0 (the | | 6 | +# "License"); you may not use this file except in compliance | | 7 | +# with the License. You may obtain a copy of the License at | 11 | 8 | # | 12 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 9 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 10 | +# | | 11 | +# Unless required by applicable law or agreed to in writing, | | 12 | +# software distributed under the License is distributed on an | | 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 14 | +# KIND, either express or implied. See the License for the | | 15 | +# specific language governing permissions and limitations | | 16 | +# under the License. | 13 | 17 | class globalEnv: | 14 | 18 | def __init__(self): | 15 | 19 | #Agent/Server/Db | |
Collapse file Copy file name to clipboardExpand all lines: python/lib/cloudutils/networkConfig.py +15-11Lines changed: 15 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2012 Citrix Systems, Inc. Licensed under the | 2 | | -# Apache License, Version 2.0 (the "License"); you may not use this | 3 | | -# file except in compliance with the License. Citrix Systems, Inc. | 4 | | -# reserves all rights not expressly granted by the License. | 5 | | -# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | 6 | | -# Unless required by applicable law or agreed to in writing, software | 7 | | -# distributed under the License is distributed on an "AS IS" BASIS, | 8 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 9 | | -# See the License for the specific language governing permissions and | 10 | | -# limitations under the License. | | 1 | +# Licensed to the Apache Software Foundation (ASF) under one | | 2 | +# or more contributor license agreements. See the NOTICE file | | 3 | +# distributed with this work for additional information | | 4 | +# regarding copyright ownership. The ASF licenses this file | | 5 | +# to you under the Apache License, Version 2.0 (the | | 6 | +# "License"); you may not use this file except in compliance | | 7 | +# with the License. You may obtain a copy of the License at | 11 | 8 | # | 12 | | -# Automatically generated by addcopyright.py at 04/03/2012 | | 9 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 10 | +# | | 11 | +# Unless required by applicable law or agreed to in writing, | | 12 | +# software distributed under the License is distributed on an | | 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | | 14 | +# KIND, either express or implied. See the License for the | | 15 | +# specific language governing permissions and limitations | | 16 | +# under the License. | 13 | 17 | from utilities import bash | 14 | 18 | from cloudException import CloudRuntimeException, CloudInternalException | 15 | 19 | import logging | |
|