From dce46c70301cfc8205b9ed48e1b4885602a910c7 Mon Sep 17 00:00:00 2001 From: Mike Scherbakov Date: Mon, 24 Jun 2013 20:25:04 +0400 Subject: [PATCH] License information added --- astute | 2 +- bin/agent | 14 ++++++++++ bin/send2syslog.py | 14 ++++++++++ fuelweb_test/__init__.py | 15 +++++++++++ fuelweb_test/helpers.py | 15 +++++++++++ fuelweb_test/integration/__init__.py | 15 +++++++++++ .../integration/base_node_test_case.py | 15 +++++++++++ fuelweb_test/integration/base_test_case.py | 15 +++++++++++ fuelweb_test/integration/ci_base.py | 15 +++++++++++ fuelweb_test/integration/ci_fuel_web.py | 15 +++++++++++ fuelweb_test/integration/decorators.py | 15 +++++++++++ fuelweb_test/integration/test_admin_node.py | 15 +++++++++++ fuelweb_test/integration/test_node.py | 15 +++++++++++ fuelweb_test/integration/test_node_ha.py | 15 +++++++++++ fuelweb_test/integration/test_node_ha2.py | 15 +++++++++++ fuelweb_test/nailgun_client.py | 15 +++++++++++ fuelweb_test/node_roles.py | 15 +++++++++++ fuelweb_test/root.py | 15 +++++++++++ fuelweb_test/settings.py | 15 +++++++++++ iso/ks.py | 15 +++++++++++ nailgun/manage.py | 15 +++++++++++ nailgun/nailgun/__init__.py | 13 ++++++++++ nailgun/nailgun/api/__init__.py | 13 ++++++++++ nailgun/nailgun/api/fields.py | 15 +++++++++++ nailgun/nailgun/api/handlers/__init__.py | 14 ++++++++++ nailgun/nailgun/api/handlers/base.py | 15 +++++++++++ nailgun/nailgun/api/handlers/cluster.py | 15 +++++++++++ nailgun/nailgun/api/handlers/logs.py | 15 +++++++++++ .../api/handlers/network_configuration.py | 15 +++++++++++ nailgun/nailgun/api/handlers/node.py | 15 +++++++++++ nailgun/nailgun/api/handlers/notifications.py | 15 +++++++++++ nailgun/nailgun/api/handlers/release.py | 15 +++++++++++ nailgun/nailgun/api/handlers/tasks.py | 15 +++++++++++ nailgun/nailgun/api/handlers/version.py | 15 +++++++++++ nailgun/nailgun/api/models.py | 15 +++++++++++ nailgun/nailgun/api/urls.py | 15 +++++++++++ nailgun/nailgun/api/validators.py | 15 +++++++++++ nailgun/nailgun/db.py | 15 +++++++++++ nailgun/nailgun/errors/__init__.py | 15 +++++++++++ nailgun/nailgun/errors/base.py | 15 +++++++++++ nailgun/nailgun/fixtures/__init__.py | 13 ++++++++++ nailgun/nailgun/fixtures/fixman.py | 15 +++++++++++ nailgun/nailgun/keepalive/__init__.py | 15 +++++++++++ nailgun/nailgun/keepalive/watcher.py | 15 +++++++++++ nailgun/nailgun/logger.py | 15 +++++++++++ nailgun/nailgun/network/__init__.py | 13 ++++++++++ nailgun/nailgun/network/manager.py | 15 +++++++++++ nailgun/nailgun/network/topology.py | 15 +++++++++++ nailgun/nailgun/notifier.py | 15 +++++++++++ nailgun/nailgun/rpc/__init__.py | 15 +++++++++++ nailgun/nailgun/rpc/receiver.py | 15 +++++++++++ nailgun/nailgun/rpc/threaded.py | 15 +++++++++++ nailgun/nailgun/settings.py | 15 +++++++++++ nailgun/nailgun/task/__init__.py | 13 ++++++++++ nailgun/nailgun/task/fake.py | 15 +++++++++++ nailgun/nailgun/task/helpers.py | 15 +++++++++++ nailgun/nailgun/task/manager.py | 15 +++++++++++ nailgun/nailgun/task/task.py | 15 +++++++++++ nailgun/nailgun/test/__init__.py | 13 ++++++++++ nailgun/nailgun/test/base.py | 15 +++++++++++ nailgun/nailgun/test/test_attributes.py | 15 +++++++++++ nailgun/nailgun/test/test_changes_model.py | 15 +++++++++++ nailgun/nailgun/test/test_charset_issues.py | 14 ++++++++++ .../test/test_cluster_changes_handler.py | 15 +++++++++++ .../test/test_cluster_collection_handlers.py | 15 +++++++++++ nailgun/nailgun/test/test_cluster_handler.py | 15 +++++++++++ nailgun/nailgun/test/test_db_refresh.py | 15 +++++++++++ .../test/test_deployment_error_handling.py | 15 +++++++++++ .../nailgun/test/test_fixture_uploading.py | 15 +++++++++++ nailgun/nailgun/test/test_handlers.py | 15 +++++++++++ nailgun/nailgun/test/test_horizon_url.py | 15 +++++++++++ nailgun/nailgun/test/test_keepalive.py | 15 +++++++++++ nailgun/nailgun/test/test_logs_handlers.py | 15 +++++++++++ .../test/test_network_configuration.py | 15 +++++++++++ nailgun/nailgun/test/test_network_manager.py | 15 +++++++++++ nailgun/nailgun/test/test_network_models.py | 15 +++++++++++ .../nailgun/test/test_network_validation.py | 15 +++++++++++ nailgun/nailgun/test/test_node_attrs.py | 15 +++++++++++ .../test/test_node_collection_handlers.py | 15 +++++++++++ nailgun/nailgun/test/test_node_deletion.py | 15 +++++++++++ nailgun/nailgun/test/test_node_handler.py | 15 +++++++++++ .../nailgun/test/test_node_nic_assignment.py | 15 +++++++++++ .../test/test_node_nic_collection_handler.py | 15 +++++++++++ nailgun/nailgun/test/test_node_nic_handler.py | 15 +++++++++++ nailgun/nailgun/test/test_notification.py | 15 +++++++++++ .../test_notification_collection_handler.py | 15 +++++++++++ .../nailgun/test/test_notification_handler.py | 15 +++++++++++ nailgun/nailgun/test/test_provisioning.py | 15 +++++++++++ .../test/test_release_collection_handlers.py | 15 +++++++++++ nailgun/nailgun/test/test_release_handler.py | 15 +++++++++++ nailgun/nailgun/test/test_rpc_consumer.py | 15 +++++++++++ nailgun/nailgun/test/test_task_managers.py | 15 +++++++++++ nailgun/nailgun/test/test_version_handler.py | 15 +++++++++++ nailgun/nailgun/unit_test.py | 15 +++++++++++ nailgun/nailgun/urls.py | 15 +++++++++++ nailgun/nailgun/volumes/__init__.py | 13 ++++++++++ nailgun/nailgun/volumes/manager.py | 15 +++++++++++ nailgun/nailgun/webui/__init__.py | 13 ++++++++++ nailgun/nailgun/webui/handlers.py | 15 +++++++++++ nailgun/nailgun/webui/urls.py | 15 +++++++++++ nailgun/nailgun/wsgi.py | 15 +++++++++++ nailgun/setup.py | 15 +++++++++++ naily/bin/nailyd | 14 ++++++++++ naily/lib/naily.rb | 14 ++++++++++ naily/lib/naily/config.rb | 15 +++++++++++ naily/lib/naily/dispatcher.rb | 14 ++++++++++ naily/lib/naily/producer.rb | 14 ++++++++++ naily/lib/naily/reporter.rb | 14 ++++++++++ naily/lib/naily/server.rb | 14 ++++++++++ naily/lib/naily/version.rb | 14 ++++++++++ naily/lib/naily/worker.rb | 16 +++++++++++- netcheck.py | 15 +++++++++++ packages/rpm/nailgun-net-check/net_probe.py | 15 +++++++++++ utils/add_license.sh | 26 +++++++++++++++++++ utils/tftp_probe.py | 15 +++++++++++ 115 files changed, 1695 insertions(+), 2 deletions(-) create mode 100755 utils/add_license.sh diff --git a/astute b/astute index bc5b255a5..a3f6c9e65 160000 --- a/astute +++ b/astute @@ -1 +1 @@ -Subproject commit bc5b255a56245a5da02f3a5e9632b806c9c496ce +Subproject commit a3f6c9e65c21bd770d28b8474bb7b62a6e8f9d82 diff --git a/bin/agent b/bin/agent index 4cd1cdb9b..7f4d2ff42 100755 --- a/bin/agent +++ b/bin/agent @@ -1,5 +1,19 @@ #!/usr/bin/env ruby +# Copyright 2013 Mirantis, Inc. +# +# 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. + begin require 'rubygems' rescue LoadError diff --git a/bin/send2syslog.py b/bin/send2syslog.py index 4258f0ba0..972d5a8d7 100755 --- a/bin/send2syslog.py +++ b/bin/send2syslog.py @@ -1,5 +1,19 @@ #!/usr/bin/python +# Copyright 2013 Mirantis, Inc. +# +# 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 import sys import signal diff --git a/fuelweb_test/__init__.py b/fuelweb_test/__init__.py index e69de29bb..aa0c8ba11 100644 --- a/fuelweb_test/__init__.py +++ b/fuelweb_test/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + diff --git a/fuelweb_test/helpers.py b/fuelweb_test/helpers.py index 3571212f0..81969d326 100644 --- a/fuelweb_test/helpers.py +++ b/fuelweb_test/helpers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 socket import subprocess import urllib2 diff --git a/fuelweb_test/integration/__init__.py b/fuelweb_test/integration/__init__.py index e69de29bb..aa0c8ba11 100644 --- a/fuelweb_test/integration/__init__.py +++ b/fuelweb_test/integration/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + diff --git a/fuelweb_test/integration/base_node_test_case.py b/fuelweb_test/integration/base_node_test_case.py index ee70c94d4..b3f23dcb8 100644 --- a/fuelweb_test/integration/base_node_test_case.py +++ b/fuelweb_test/integration/base_node_test_case.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 logging from devops.helpers.helpers import SSHClient, wait, _wait from paramiko import RSAKey diff --git a/fuelweb_test/integration/base_test_case.py b/fuelweb_test/integration/base_test_case.py index c0774c6f7..75d834184 100644 --- a/fuelweb_test/integration/base_test_case.py +++ b/fuelweb_test/integration/base_test_case.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + from devops.helpers.helpers import SSHClient import logging from unittest.case import TestCase diff --git a/fuelweb_test/integration/ci_base.py b/fuelweb_test/integration/ci_base.py index 14efb204f..f72f2bf07 100644 --- a/fuelweb_test/integration/ci_base.py +++ b/fuelweb_test/integration/ci_base.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + from abc import abstractproperty, abstractmethod from devops.helpers.helpers import _get_file_size from devops.manager import Manager diff --git a/fuelweb_test/integration/ci_fuel_web.py b/fuelweb_test/integration/ci_fuel_web.py index 62cdef1a6..22e2cb9d2 100644 --- a/fuelweb_test/integration/ci_fuel_web.py +++ b/fuelweb_test/integration/ci_fuel_web.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 import time import logging diff --git a/fuelweb_test/integration/decorators.py b/fuelweb_test/integration/decorators.py index 6f28eec18..d7a46213e 100644 --- a/fuelweb_test/integration/decorators.py +++ b/fuelweb_test/integration/decorators.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 functools import json import logging diff --git a/fuelweb_test/integration/test_admin_node.py b/fuelweb_test/integration/test_admin_node.py index 9c0fc0cea..ee9802e93 100644 --- a/fuelweb_test/integration/test_admin_node.py +++ b/fuelweb_test/integration/test_admin_node.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 logging import unittest import xmlrpclib diff --git a/fuelweb_test/integration/test_node.py b/fuelweb_test/integration/test_node.py index f5f8f3678..b9293b997 100644 --- a/fuelweb_test/integration/test_node.py +++ b/fuelweb_test/integration/test_node.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 logging import unittest from devops.helpers.helpers import wait diff --git a/fuelweb_test/integration/test_node_ha.py b/fuelweb_test/integration/test_node_ha.py index 415eefb24..1f20d80d0 100644 --- a/fuelweb_test/integration/test_node_ha.py +++ b/fuelweb_test/integration/test_node_ha.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 logging import unittest from fuelweb_test.integration.base_node_test_case import BaseNodeTestCase diff --git a/fuelweb_test/integration/test_node_ha2.py b/fuelweb_test/integration/test_node_ha2.py index dded7aacc..82560cd59 100644 --- a/fuelweb_test/integration/test_node_ha2.py +++ b/fuelweb_test/integration/test_node_ha2.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 logging import unittest from fuelweb_test.integration.base_node_test_case import BaseNodeTestCase diff --git a/fuelweb_test/nailgun_client.py b/fuelweb_test/nailgun_client.py index 61517a9a8..35596303c 100644 --- a/fuelweb_test/nailgun_client.py +++ b/fuelweb_test/nailgun_client.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 logging from fuelweb_test.helpers import HTTPClient from fuelweb_test.integration.decorators import debug, json_parse diff --git a/fuelweb_test/node_roles.py b/fuelweb_test/node_roles.py index d058fd702..2fafa19c8 100644 --- a/fuelweb_test/node_roles.py +++ b/fuelweb_test/node_roles.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + class NodeRoles(object): def __init__(self, admin_names=None, diff --git a/fuelweb_test/root.py b/fuelweb_test/root.py index 8e2baee5b..504ce4e13 100644 --- a/fuelweb_test/root.py +++ b/fuelweb_test/root.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 here = lambda *x: os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) diff --git a/fuelweb_test/settings.py b/fuelweb_test/settings.py index b24ae1bdf..27cdb0f94 100644 --- a/fuelweb_test/settings.py +++ b/fuelweb_test/settings.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 ISO_PATH = os.environ.get('ISO_PATH') diff --git a/iso/ks.py b/iso/ks.py index 2bc54f67d..d93fe5174 100644 --- a/iso/ks.py +++ b/iso/ks.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 import argparse import yaml diff --git a/nailgun/manage.py b/nailgun/manage.py index 29da57a21..bdb3aafeb 100755 --- a/nailgun/manage.py +++ b/nailgun/manage.py @@ -1,4 +1,19 @@ #!/usr/bin/env python + +# Copyright 2013 Mirantis, Inc. +# +# 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. + # -*- coding: utf-8 -*- import os import sys diff --git a/nailgun/nailgun/__init__.py b/nailgun/nailgun/__init__.py index e69de29bb..141ca6ab9 100644 --- a/nailgun/nailgun/__init__.py +++ b/nailgun/nailgun/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. diff --git a/nailgun/nailgun/api/__init__.py b/nailgun/nailgun/api/__init__.py index e69de29bb..141ca6ab9 100644 --- a/nailgun/nailgun/api/__init__.py +++ b/nailgun/nailgun/api/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. diff --git a/nailgun/nailgun/api/fields.py b/nailgun/nailgun/api/fields.py index f12d7d0b2..1125e876e 100644 --- a/nailgun/nailgun/api/fields.py +++ b/nailgun/nailgun/api/fields.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/api/handlers/__init__.py b/nailgun/nailgun/api/handlers/__init__.py index 0f05669ad..0143afe08 100644 --- a/nailgun/nailgun/api/handlers/__init__.py +++ b/nailgun/nailgun/api/handlers/__init__.py @@ -1,2 +1,16 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + from nailgun.api.handlers.base import check_client_content_type from nailgun.api.handlers.base import forbid_client_caching diff --git a/nailgun/nailgun/api/handlers/base.py b/nailgun/nailgun/api/handlers/base.py index 5c2b12272..4f8cf4334 100644 --- a/nailgun/nailgun/api/handlers/base.py +++ b/nailgun/nailgun/api/handlers/base.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/api/handlers/cluster.py b/nailgun/nailgun/api/handlers/cluster.py index dd101484a..7317b5504 100644 --- a/nailgun/nailgun/api/handlers/cluster.py +++ b/nailgun/nailgun/api/handlers/cluster.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/api/handlers/logs.py b/nailgun/nailgun/api/handlers/logs.py index 714f2f576..eda0c42df 100644 --- a/nailgun/nailgun/api/handlers/logs.py +++ b/nailgun/nailgun/api/handlers/logs.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import re diff --git a/nailgun/nailgun/api/handlers/network_configuration.py b/nailgun/nailgun/api/handlers/network_configuration.py index 42e063ba6..f72183e31 100644 --- a/nailgun/nailgun/api/handlers/network_configuration.py +++ b/nailgun/nailgun/api/handlers/network_configuration.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/api/handlers/node.py b/nailgun/nailgun/api/handlers/node.py index 86f99845b..ab1ceeb71 100644 --- a/nailgun/nailgun/api/handlers/node.py +++ b/nailgun/nailgun/api/handlers/node.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/api/handlers/notifications.py b/nailgun/nailgun/api/handlers/notifications.py index 474283437..9edc6c044 100644 --- a/nailgun/nailgun/api/handlers/notifications.py +++ b/nailgun/nailgun/api/handlers/notifications.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/api/handlers/release.py b/nailgun/nailgun/api/handlers/release.py index c4fc65b8c..1335ea06b 100644 --- a/nailgun/nailgun/api/handlers/release.py +++ b/nailgun/nailgun/api/handlers/release.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/api/handlers/tasks.py b/nailgun/nailgun/api/handlers/tasks.py index d96f3742e..1accc0e54 100644 --- a/nailgun/nailgun/api/handlers/tasks.py +++ b/nailgun/nailgun/api/handlers/tasks.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/api/handlers/version.py b/nailgun/nailgun/api/handlers/version.py index 94c92c29f..92d31074a 100644 --- a/nailgun/nailgun/api/handlers/version.py +++ b/nailgun/nailgun/api/handlers/version.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import os diff --git a/nailgun/nailgun/api/models.py b/nailgun/nailgun/api/models.py index 059c741ec..8eb68f8bf 100644 --- a/nailgun/nailgun/api/models.py +++ b/nailgun/nailgun/api/models.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import re diff --git a/nailgun/nailgun/api/urls.py b/nailgun/nailgun/api/urls.py index 95d986879..a1bc7b297 100644 --- a/nailgun/nailgun/api/urls.py +++ b/nailgun/nailgun/api/urls.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import web diff --git a/nailgun/nailgun/api/validators.py b/nailgun/nailgun/api/validators.py index 400b86070..71bcd4a23 100644 --- a/nailgun/nailgun/api/validators.py +++ b/nailgun/nailgun/api/validators.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/db.py b/nailgun/nailgun/db.py index a934284e0..ae792961a 100644 --- a/nailgun/nailgun/db.py +++ b/nailgun/nailgun/db.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import traceback diff --git a/nailgun/nailgun/errors/__init__.py b/nailgun/nailgun/errors/__init__.py index a76c36193..515b647d5 100644 --- a/nailgun/nailgun/errors/__init__.py +++ b/nailgun/nailgun/errors/__init__.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- from nailgun.logger import logger diff --git a/nailgun/nailgun/errors/base.py b/nailgun/nailgun/errors/base.py index 653a30e23..c9c9295d5 100644 --- a/nailgun/nailgun/errors/base.py +++ b/nailgun/nailgun/errors/base.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- from nailgun.logger import logger diff --git a/nailgun/nailgun/fixtures/__init__.py b/nailgun/nailgun/fixtures/__init__.py index e69de29bb..141ca6ab9 100644 --- a/nailgun/nailgun/fixtures/__init__.py +++ b/nailgun/nailgun/fixtures/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. diff --git a/nailgun/nailgun/fixtures/fixman.py b/nailgun/nailgun/fixtures/fixman.py index e58dd2ba0..fa89272e8 100644 --- a/nailgun/nailgun/fixtures/fixman.py +++ b/nailgun/nailgun/fixtures/fixman.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import sys diff --git a/nailgun/nailgun/keepalive/__init__.py b/nailgun/nailgun/keepalive/__init__.py index 6c8d2f5f4..372a0e658 100644 --- a/nailgun/nailgun/keepalive/__init__.py +++ b/nailgun/nailgun/keepalive/__init__.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + from watcher import KeepAliveThread from nailgun.db import orm from nailgun.api.models import Node diff --git a/nailgun/nailgun/keepalive/watcher.py b/nailgun/nailgun/keepalive/watcher.py index 1c44db7ff..fdd89ad9b 100644 --- a/nailgun/nailgun/keepalive/watcher.py +++ b/nailgun/nailgun/keepalive/watcher.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import time diff --git a/nailgun/nailgun/logger.py b/nailgun/nailgun/logger.py index 87ccc88ce..92ebf2e34 100644 --- a/nailgun/nailgun/logger.py +++ b/nailgun/nailgun/logger.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import sys diff --git a/nailgun/nailgun/network/__init__.py b/nailgun/nailgun/network/__init__.py index e69de29bb..141ca6ab9 100644 --- a/nailgun/nailgun/network/__init__.py +++ b/nailgun/nailgun/network/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. diff --git a/nailgun/nailgun/network/manager.py b/nailgun/nailgun/network/manager.py index abccd5b20..6da4a5d3c 100644 --- a/nailgun/nailgun/network/manager.py +++ b/nailgun/nailgun/network/manager.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import math diff --git a/nailgun/nailgun/network/topology.py b/nailgun/nailgun/network/topology.py index 69f93435d..5dfc119d5 100644 --- a/nailgun/nailgun/network/topology.py +++ b/nailgun/nailgun/network/topology.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import web diff --git a/nailgun/nailgun/notifier.py b/nailgun/nailgun/notifier.py index 85aaaa4a4..febb9d0d1 100644 --- a/nailgun/nailgun/notifier.py +++ b/nailgun/nailgun/notifier.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/rpc/__init__.py b/nailgun/nailgun/rpc/__init__.py index ca3195dac..d38d89ef8 100644 --- a/nailgun/nailgun/rpc/__init__.py +++ b/nailgun/nailgun/rpc/__init__.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- from kombu import Connection, Exchange, Queue diff --git a/nailgun/nailgun/rpc/receiver.py b/nailgun/nailgun/rpc/receiver.py index deff31558..a3f80251a 100644 --- a/nailgun/nailgun/rpc/receiver.py +++ b/nailgun/nailgun/rpc/receiver.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import time diff --git a/nailgun/nailgun/rpc/threaded.py b/nailgun/nailgun/rpc/threaded.py index e083ece43..c61205e0f 100644 --- a/nailgun/nailgun/rpc/threaded.py +++ b/nailgun/nailgun/rpc/threaded.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import time diff --git a/nailgun/nailgun/settings.py b/nailgun/nailgun/settings.py index 9b4670d94..8c102e3d7 100644 --- a/nailgun/nailgun/settings.py +++ b/nailgun/nailgun/settings.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 sys import cStringIO import os.path diff --git a/nailgun/nailgun/task/__init__.py b/nailgun/nailgun/task/__init__.py index e69de29bb..141ca6ab9 100644 --- a/nailgun/nailgun/task/__init__.py +++ b/nailgun/nailgun/task/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. diff --git a/nailgun/nailgun/task/fake.py b/nailgun/nailgun/task/fake.py index ad5426d6a..858ba9cc6 100644 --- a/nailgun/nailgun/task/fake.py +++ b/nailgun/nailgun/task/fake.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 web import time import logging diff --git a/nailgun/nailgun/task/helpers.py b/nailgun/nailgun/task/helpers.py index 6ce910703..1b67095cb 100644 --- a/nailgun/nailgun/task/helpers.py +++ b/nailgun/nailgun/task/helpers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import os diff --git a/nailgun/nailgun/task/manager.py b/nailgun/nailgun/task/manager.py index ed8e6560f..f879643cc 100644 --- a/nailgun/nailgun/task/manager.py +++ b/nailgun/nailgun/task/manager.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import uuid diff --git a/nailgun/nailgun/task/task.py b/nailgun/nailgun/task/task.py index 964be57dc..17952e91a 100644 --- a/nailgun/nailgun/task/task.py +++ b/nailgun/nailgun/task/task.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import uuid diff --git a/nailgun/nailgun/test/__init__.py b/nailgun/nailgun/test/__init__.py index e69de29bb..141ca6ab9 100644 --- a/nailgun/nailgun/test/__init__.py +++ b/nailgun/nailgun/test/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. diff --git a/nailgun/nailgun/test/base.py b/nailgun/nailgun/test/base.py index 8b0b536cb..d70a764f6 100644 --- a/nailgun/nailgun/test/base.py +++ b/nailgun/nailgun/test/base.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- try: diff --git a/nailgun/nailgun/test/test_attributes.py b/nailgun/nailgun/test/test_attributes.py index b921fb88a..a646c1df7 100644 --- a/nailgun/nailgun/test/test_attributes.py +++ b/nailgun/nailgun/test/test_attributes.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json from paste.fixture import TestApp diff --git a/nailgun/nailgun/test/test_changes_model.py b/nailgun/nailgun/test/test_changes_model.py index a7bd3555f..34c9e4284 100644 --- a/nailgun/nailgun/test/test_changes_model.py +++ b/nailgun/nailgun/test/test_changes_model.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json import time diff --git a/nailgun/nailgun/test/test_charset_issues.py b/nailgun/nailgun/test/test_charset_issues.py index 7dcc7c7cc..ceb04860b 100644 --- a/nailgun/nailgun/test/test_charset_issues.py +++ b/nailgun/nailgun/test/test_charset_issues.py @@ -1,5 +1,19 @@ # -*- coding: utf-8 -*- +# Copyright 2013 Mirantis, Inc. +# +# 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 json import time diff --git a/nailgun/nailgun/test/test_cluster_changes_handler.py b/nailgun/nailgun/test/test_cluster_changes_handler.py index 75646ef13..6bae8b279 100644 --- a/nailgun/nailgun/test/test_cluster_changes_handler.py +++ b/nailgun/nailgun/test/test_cluster_changes_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/test/test_cluster_collection_handlers.py b/nailgun/nailgun/test/test_cluster_collection_handlers.py index 291b74427..78f2b3ee8 100644 --- a/nailgun/nailgun/test/test_cluster_collection_handlers.py +++ b/nailgun/nailgun/test/test_cluster_collection_handlers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json import unittest diff --git a/nailgun/nailgun/test/test_cluster_handler.py b/nailgun/nailgun/test/test_cluster_handler.py index c39428423..96da98dc5 100644 --- a/nailgun/nailgun/test/test_cluster_handler.py +++ b/nailgun/nailgun/test/test_cluster_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json from nailgun.api.models import Cluster, Node, NetworkGroup diff --git a/nailgun/nailgun/test/test_db_refresh.py b/nailgun/nailgun/test/test_db_refresh.py index ebee0827e..60c4a3e73 100644 --- a/nailgun/nailgun/test/test_db_refresh.py +++ b/nailgun/nailgun/test/test_db_refresh.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- from datetime import datetime diff --git a/nailgun/nailgun/test/test_deployment_error_handling.py b/nailgun/nailgun/test/test_deployment_error_handling.py index 7a1f75a0b..8d0924ab2 100644 --- a/nailgun/nailgun/test/test_deployment_error_handling.py +++ b/nailgun/nailgun/test/test_deployment_error_handling.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import re import json diff --git a/nailgun/nailgun/test/test_fixture_uploading.py b/nailgun/nailgun/test/test_fixture_uploading.py index f9f1c1b8d..07f8e84b5 100644 --- a/nailgun/nailgun/test/test_fixture_uploading.py +++ b/nailgun/nailgun/test/test_fixture_uploading.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/test/test_handlers.py b/nailgun/nailgun/test/test_handlers.py index 516cbaba4..abb8ca4c8 100644 --- a/nailgun/nailgun/test/test_handlers.py +++ b/nailgun/nailgun/test/test_handlers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest diff --git a/nailgun/nailgun/test/test_horizon_url.py b/nailgun/nailgun/test/test_horizon_url.py index aff9d626d..7241a27e2 100644 --- a/nailgun/nailgun/test/test_horizon_url.py +++ b/nailgun/nailgun/test/test_horizon_url.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json import time diff --git a/nailgun/nailgun/test/test_keepalive.py b/nailgun/nailgun/test/test_keepalive.py index 577a884d9..cce4510cb 100644 --- a/nailgun/nailgun/test/test_keepalive.py +++ b/nailgun/nailgun/test/test_keepalive.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json import time diff --git a/nailgun/nailgun/test/test_logs_handlers.py b/nailgun/nailgun/test/test_logs_handlers.py index 429e6daa8..1930a7d6f 100644 --- a/nailgun/nailgun/test/test_logs_handlers.py +++ b/nailgun/nailgun/test/test_logs_handlers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest diff --git a/nailgun/nailgun/test/test_network_configuration.py b/nailgun/nailgun/test/test_network_configuration.py index 95dc22f63..c6d5dd718 100644 --- a/nailgun/nailgun/test/test_network_configuration.py +++ b/nailgun/nailgun/test/test_network_configuration.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/test/test_network_manager.py b/nailgun/nailgun/test/test_network_manager.py index 9eeaaf151..9f0689129 100644 --- a/nailgun/nailgun/test/test_network_manager.py +++ b/nailgun/nailgun/test/test_network_manager.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 json import itertools diff --git a/nailgun/nailgun/test/test_network_models.py b/nailgun/nailgun/test/test_network_models.py index 1263fb561..35a52a7de 100644 --- a/nailgun/nailgun/test/test_network_models.py +++ b/nailgun/nailgun/test/test_network_models.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 json from sqlalchemy.sql import not_ diff --git a/nailgun/nailgun/test/test_network_validation.py b/nailgun/nailgun/test/test_network_validation.py index 43dcf8e17..d88f78014 100644 --- a/nailgun/nailgun/test/test_network_validation.py +++ b/nailgun/nailgun/test/test_network_validation.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/test/test_node_attrs.py b/nailgun/nailgun/test/test_node_attrs.py index 77e0f871b..cff998a2a 100644 --- a/nailgun/nailgun/test/test_node_attrs.py +++ b/nailgun/nailgun/test/test_node_attrs.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest import json diff --git a/nailgun/nailgun/test/test_node_collection_handlers.py b/nailgun/nailgun/test/test_node_collection_handlers.py index 00a88940d..5a6a053a5 100644 --- a/nailgun/nailgun/test/test_node_collection_handlers.py +++ b/nailgun/nailgun/test/test_node_collection_handlers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/test/test_node_deletion.py b/nailgun/nailgun/test/test_node_deletion.py index e1b979a70..85f06fa63 100644 --- a/nailgun/nailgun/test/test_node_deletion.py +++ b/nailgun/nailgun/test/test_node_deletion.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 logging from mock import Mock, patch diff --git a/nailgun/nailgun/test/test_node_handler.py b/nailgun/nailgun/test/test_node_handler.py index 2d7eaed8f..b997224c9 100644 --- a/nailgun/nailgun/test/test_node_handler.py +++ b/nailgun/nailgun/test/test_node_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest import json diff --git a/nailgun/nailgun/test/test_node_nic_assignment.py b/nailgun/nailgun/test/test_node_nic_assignment.py index fc9258795..2984914fb 100644 --- a/nailgun/nailgun/test/test_node_nic_assignment.py +++ b/nailgun/nailgun/test/test_node_nic_assignment.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest import json diff --git a/nailgun/nailgun/test/test_node_nic_collection_handler.py b/nailgun/nailgun/test/test_node_nic_collection_handler.py index b31a17f6a..31f094a02 100644 --- a/nailgun/nailgun/test/test_node_nic_collection_handler.py +++ b/nailgun/nailgun/test/test_node_nic_collection_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest import json diff --git a/nailgun/nailgun/test/test_node_nic_handler.py b/nailgun/nailgun/test/test_node_nic_handler.py index 235943102..8ab292527 100644 --- a/nailgun/nailgun/test/test_node_nic_handler.py +++ b/nailgun/nailgun/test/test_node_nic_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest import json diff --git a/nailgun/nailgun/test/test_notification.py b/nailgun/nailgun/test/test_notification.py index 615b7fa97..edb679989 100644 --- a/nailgun/nailgun/test/test_notification.py +++ b/nailgun/nailgun/test/test_notification.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import time diff --git a/nailgun/nailgun/test/test_notification_collection_handler.py b/nailgun/nailgun/test/test_notification_collection_handler.py index aad905bf1..beef351e8 100644 --- a/nailgun/nailgun/test/test_notification_collection_handler.py +++ b/nailgun/nailgun/test/test_notification_collection_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest diff --git a/nailgun/nailgun/test/test_notification_handler.py b/nailgun/nailgun/test/test_notification_handler.py index e9d4255b8..2442f0a87 100644 --- a/nailgun/nailgun/test/test_notification_handler.py +++ b/nailgun/nailgun/test/test_notification_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import unittest diff --git a/nailgun/nailgun/test/test_provisioning.py b/nailgun/nailgun/test/test_provisioning.py index b222d1412..5c36dff59 100644 --- a/nailgun/nailgun/test/test_provisioning.py +++ b/nailgun/nailgun/test/test_provisioning.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/test/test_release_collection_handlers.py b/nailgun/nailgun/test/test_release_collection_handlers.py index 8521f51ff..5d5568c3a 100644 --- a/nailgun/nailgun/test/test_release_collection_handlers.py +++ b/nailgun/nailgun/test/test_release_collection_handlers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json from paste.fixture import TestApp diff --git a/nailgun/nailgun/test/test_release_handler.py b/nailgun/nailgun/test/test_release_handler.py index 303e76f66..0a09092e4 100644 --- a/nailgun/nailgun/test/test_release_handler.py +++ b/nailgun/nailgun/test/test_release_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json from paste.fixture import TestApp diff --git a/nailgun/nailgun/test/test_rpc_consumer.py b/nailgun/nailgun/test/test_rpc_consumer.py index 93c24d233..a32e74d45 100644 --- a/nailgun/nailgun/test/test_rpc_consumer.py +++ b/nailgun/nailgun/test/test_rpc_consumer.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/test/test_task_managers.py b/nailgun/nailgun/test/test_task_managers.py index 2c09e03b7..eeafb823f 100644 --- a/nailgun/nailgun/test/test_task_managers.py +++ b/nailgun/nailgun/test/test_task_managers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json import time diff --git a/nailgun/nailgun/test/test_version_handler.py b/nailgun/nailgun/test/test_version_handler.py index a19a5a853..9176e206c 100644 --- a/nailgun/nailgun/test/test_version_handler.py +++ b/nailgun/nailgun/test/test_version_handler.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/unit_test.py b/nailgun/nailgun/unit_test.py index 2b30b4edd..cb5461553 100644 --- a/nailgun/nailgun/unit_test.py +++ b/nailgun/nailgun/unit_test.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import nose diff --git a/nailgun/nailgun/urls.py b/nailgun/nailgun/urls.py index 2ce3800ec..6c72f177f 100644 --- a/nailgun/nailgun/urls.py +++ b/nailgun/nailgun/urls.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- from nailgun.api import urls as api_urls diff --git a/nailgun/nailgun/volumes/__init__.py b/nailgun/nailgun/volumes/__init__.py index e69de29bb..141ca6ab9 100644 --- a/nailgun/nailgun/volumes/__init__.py +++ b/nailgun/nailgun/volumes/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. diff --git a/nailgun/nailgun/volumes/manager.py b/nailgun/nailgun/volumes/manager.py index 866a31ff2..488c0f691 100644 --- a/nailgun/nailgun/volumes/manager.py +++ b/nailgun/nailgun/volumes/manager.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import json diff --git a/nailgun/nailgun/webui/__init__.py b/nailgun/nailgun/webui/__init__.py index e69de29bb..141ca6ab9 100644 --- a/nailgun/nailgun/webui/__init__.py +++ b/nailgun/nailgun/webui/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. diff --git a/nailgun/nailgun/webui/handlers.py b/nailgun/nailgun/webui/handlers.py index dc1ece38b..916847677 100644 --- a/nailgun/nailgun/webui/handlers.py +++ b/nailgun/nailgun/webui/handlers.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import web diff --git a/nailgun/nailgun/webui/urls.py b/nailgun/nailgun/webui/urls.py index b62100710..2349b625b 100644 --- a/nailgun/nailgun/webui/urls.py +++ b/nailgun/nailgun/webui/urls.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + # -*- coding: utf-8 -*- import web diff --git a/nailgun/nailgun/wsgi.py b/nailgun/nailgun/wsgi.py index 548623135..0f2138d98 100644 --- a/nailgun/nailgun/wsgi.py +++ b/nailgun/nailgun/wsgi.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 import sys import web diff --git a/nailgun/setup.py b/nailgun/setup.py index 2d203f611..a04e54724 100644 --- a/nailgun/setup.py +++ b/nailgun/setup.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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 import os.path import pprint diff --git a/naily/bin/nailyd b/naily/bin/nailyd index 38df809e1..5e1ccb7ab 100755 --- a/naily/bin/nailyd +++ b/naily/bin/nailyd @@ -1,5 +1,19 @@ #!/usr/bin/env ruby +# Copyright 2013 Mirantis, Inc. +# +# 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. + require 'naily' require 'logger' require 'ostruct' diff --git a/naily/lib/naily.rb b/naily/lib/naily.rb index 326ae12b7..6e99f76e1 100644 --- a/naily/lib/naily.rb +++ b/naily/lib/naily.rb @@ -1,3 +1,17 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + require 'astute' require 'naily/version' require 'naily/config' diff --git a/naily/lib/naily/config.rb b/naily/lib/naily/config.rb index 34d00a174..63891537a 100644 --- a/naily/lib/naily/config.rb +++ b/naily/lib/naily/config.rb @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + require 'symboltable' require 'singleton' diff --git a/naily/lib/naily/dispatcher.rb b/naily/lib/naily/dispatcher.rb index c48a711f2..ff8d71e49 100644 --- a/naily/lib/naily/dispatcher.rb +++ b/naily/lib/naily/dispatcher.rb @@ -1,3 +1,17 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + require 'naily/reporter' module Naily diff --git a/naily/lib/naily/producer.rb b/naily/lib/naily/producer.rb index 219b69300..24475779c 100644 --- a/naily/lib/naily/producer.rb +++ b/naily/lib/naily/producer.rb @@ -1,3 +1,17 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + module Naily class Producer def initialize(exchange) diff --git a/naily/lib/naily/reporter.rb b/naily/lib/naily/reporter.rb index ca4b6280d..942d209e9 100644 --- a/naily/lib/naily/reporter.rb +++ b/naily/lib/naily/reporter.rb @@ -1,3 +1,17 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + module Naily class Reporter def initialize(producer, method, task_uuid) diff --git a/naily/lib/naily/server.rb b/naily/lib/naily/server.rb index dbdf01009..d59349cca 100644 --- a/naily/lib/naily/server.rb +++ b/naily/lib/naily/server.rb @@ -1,3 +1,17 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + require 'json' module Naily diff --git a/naily/lib/naily/version.rb b/naily/lib/naily/version.rb index c5670f6bb..a94997175 100644 --- a/naily/lib/naily/version.rb +++ b/naily/lib/naily/version.rb @@ -1,3 +1,17 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + module Naily VERSION = '0.1.0' end diff --git a/naily/lib/naily/worker.rb b/naily/lib/naily/worker.rb index 0beca1e30..853800e49 100644 --- a/naily/lib/naily/worker.rb +++ b/naily/lib/naily/worker.rb @@ -1,3 +1,17 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + require 'raemon' module Naily @@ -81,4 +95,4 @@ module Naily EM.stop_event_loop if EM.reactor_running? end end -end \ No newline at end of file +end diff --git a/netcheck.py b/netcheck.py index f95caea5d..6a6689025 100644 --- a/netcheck.py +++ b/netcheck.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + #!/usr/bin/env python import random import logging diff --git a/packages/rpm/nailgun-net-check/net_probe.py b/packages/rpm/nailgun-net-check/net_probe.py index 546597a6d..a4a84fd98 100755 --- a/packages/rpm/nailgun-net-check/net_probe.py +++ b/packages/rpm/nailgun-net-check/net_probe.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + #!/usr/bin/python # # Generate and send Ethernet packets to specified interfaces. diff --git a/utils/add_license.sh b/utils/add_license.sh new file mode 100755 index 000000000..66557a2de --- /dev/null +++ b/utils/add_license.sh @@ -0,0 +1,26 @@ +#!/bin/zsh + +copyright='# Copyright 2013 Mirantis, Inc. +# +# 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. + +' + +for i in **/*.(py|rb); do + if ! grep -q Copyright $i; then + cp $i $i.bak + echo "$copyright" > $i.new + cat $i.new $i.bak > $i + rm -f $i.new $i.bak + fi +done diff --git a/utils/tftp_probe.py b/utils/tftp_probe.py index 97e712fb0..15e5c5f94 100755 --- a/utils/tftp_probe.py +++ b/utils/tftp_probe.py @@ -1,3 +1,18 @@ +# Copyright 2013 Mirantis, Inc. +# +# 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. + + #!/usr/bin/env python import logging