From f4cda8170d9a5f17c1c130df4b28e1e230cde34b Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Sun, 21 Dec 2014 23:05:40 +0100 Subject: [PATCH] Introduce hacking and solve all found issues Change-Id: Ica586f27308a84a4911ef2754d7ae8852321055d --- scripts/check_yaml_syntax.py | 14 ++++++++++++++ scripts/get_hosts.py | 13 +++++++++++++ test-requirements.txt | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/scripts/check_yaml_syntax.py b/scripts/check_yaml_syntax.py index 140bc90..26abda7 100644 --- a/scripts/check_yaml_syntax.py +++ b/scripts/check_yaml_syntax.py @@ -1,6 +1,20 @@ #!/usr/bin/env python +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import sys + import yaml sys.tracebacklimit = 0 diff --git a/scripts/get_hosts.py b/scripts/get_hosts.py index ea29277..df7f6cf 100644 --- a/scripts/get_hosts.py +++ b/scripts/get_hosts.py @@ -1,5 +1,18 @@ #!/usr/bin/python +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import yaml config = yaml.load(open('config.yaml')) diff --git a/test-requirements.txt b/test-requirements.txt index 380fdab..df9de3c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,7 +4,7 @@ ansible bashate doc8 docutils -flake8 +hacking oslosphinx pbr>=0.6,!=0.7,<1.0 sphinx>=1.1.2,<1.2