From f99122c2d4007ab5564cd3324b5d017a0d770d08 Mon Sep 17 00:00:00 2001 From: Allen Robel Date: Sat, 20 Apr 2024 14:59:03 -1000 Subject: [PATCH] Fix sanity-found boilerplate issues --- plugins/module_utils/common/conversion.py | 20 ++++++++++++++++++++ plugins/module_utils/common/exceptions.py | 20 ++++++++++++++++++++ plugins/module_utils/fabric/param_info.py | 19 +++++++++++++++++++ plugins/module_utils/fabric/ruleset.py | 21 ++++++++++++++++++++- 4 files changed, 79 insertions(+), 1 deletion(-) diff --git a/plugins/module_utils/common/conversion.py b/plugins/module_utils/common/conversion.py index 0446ef5af..95bded914 100644 --- a/plugins/module_utils/common/conversion.py +++ b/plugins/module_utils/common/conversion.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Cisco and/or its affiliates. +# +# 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 __future__ import absolute_import, division, print_function + +__metaclass__ = type +__author__ = "Allen Robel" + + class ConversionUtils: @staticmethod def make_boolean(value): diff --git a/plugins/module_utils/common/exceptions.py b/plugins/module_utils/common/exceptions.py index 4ef1748bf..d1947d8a9 100644 --- a/plugins/module_utils/common/exceptions.py +++ b/plugins/module_utils/common/exceptions.py @@ -1,2 +1,22 @@ +# Copyright (c) 2024 Cisco and/or its affiliates. +# +# 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 __future__ import absolute_import, division, print_function + +__metaclass__ = type +__author__ = "Allen Robel" + + class ControllerResponseError(Exception): pass diff --git a/plugins/module_utils/fabric/param_info.py b/plugins/module_utils/fabric/param_info.py index b088a42b6..ca1268ba8 100644 --- a/plugins/module_utils/fabric/param_info.py +++ b/plugins/module_utils/fabric/param_info.py @@ -1,3 +1,22 @@ +# Copyright (c) 2024 Cisco and/or its affiliates. +# +# 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 __future__ import absolute_import, division, print_function + +__metaclass__ = type +__author__ = "Allen Robel" + import inspect import json import logging diff --git a/plugins/module_utils/fabric/ruleset.py b/plugins/module_utils/fabric/ruleset.py index 0aacd977e..babb2f52a 100644 --- a/plugins/module_utils/fabric/ruleset.py +++ b/plugins/module_utils/fabric/ruleset.py @@ -1,4 +1,23 @@ -#!/usr/bin/env python +# Copyright (c) 2024 Cisco and/or its affiliates. +# +# 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 __future__ import absolute_import, division, print_function + +__metaclass__ = type +__author__ = "Allen Robel" + + import inspect import json import logging