diff --git a/plugins/doc_fragments/_gcp.py b/plugins/doc_fragments/_gcp.py index 308d48808b..068725436e 100644 --- a/plugins/doc_fragments/_gcp.py +++ b/plugins/doc_fragments/_gcp.py @@ -3,6 +3,9 @@ # Copyright: (c) 2018, Google Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): # GCP doc fragment. diff --git a/plugins/doc_fragments/alicloud.py b/plugins/doc_fragments/alicloud.py index 3c9294c4f9..f9c9640b61 100644 --- a/plugins/doc_fragments/alicloud.py +++ b/plugins/doc_fragments/alicloud.py @@ -3,6 +3,9 @@ # Copyright (c) 2017-present Alibaba Group Holding Limited. He Guimin # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/auth_basic.py b/plugins/doc_fragments/auth_basic.py index 64777f5921..6f590611d9 100644 --- a/plugins/doc_fragments/auth_basic.py +++ b/plugins/doc_fragments/auth_basic.py @@ -2,6 +2,9 @@ # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/digital_ocean.py b/plugins/doc_fragments/digital_ocean.py index 4422339168..5759d17b51 100644 --- a/plugins/doc_fragments/digital_ocean.py +++ b/plugins/doc_fragments/digital_ocean.py @@ -4,6 +4,9 @@ # Copyright: (c) 2018, Abhijeet Kasurde (akasurde@redhat.com) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): # Parameters for DigitalOcean modules diff --git a/plugins/doc_fragments/dimensiondata.py b/plugins/doc_fragments/dimensiondata.py index 1eb5f16051..2b159a115f 100644 --- a/plugins/doc_fragments/dimensiondata.py +++ b/plugins/doc_fragments/dimensiondata.py @@ -3,6 +3,9 @@ # Copyright: (c) 2016, Dimension Data # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + # Authors: # - Adam Friedman diff --git a/plugins/doc_fragments/dimensiondata_wait.py b/plugins/doc_fragments/dimensiondata_wait.py index b87132678f..ac3deab154 100644 --- a/plugins/doc_fragments/dimensiondata_wait.py +++ b/plugins/doc_fragments/dimensiondata_wait.py @@ -3,6 +3,9 @@ # Copyright: (c) 2016, Dimension Data # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + # Authors: # - Adam Friedman diff --git a/plugins/doc_fragments/emc.py b/plugins/doc_fragments/emc.py index 84accf42d3..cce76823fe 100644 --- a/plugins/doc_fragments/emc.py +++ b/plugins/doc_fragments/emc.py @@ -3,6 +3,9 @@ # Copyright: (c) 2018, Luca Lorenzetto (@remix_tj) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/hetzner.py b/plugins/doc_fragments/hetzner.py index 536e1a50d6..32a595f097 100644 --- a/plugins/doc_fragments/hetzner.py +++ b/plugins/doc_fragments/hetzner.py @@ -3,6 +3,9 @@ # Copyright: (c) 2019 Felix Fontein # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/hpe3par.py b/plugins/doc_fragments/hpe3par.py index 2f0c69eea2..fa51ccdb91 100644 --- a/plugins/doc_fragments/hpe3par.py +++ b/plugins/doc_fragments/hpe3par.py @@ -2,6 +2,9 @@ # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/hwc.py b/plugins/doc_fragments/hwc.py index e8d89b9ec0..80cd0465d7 100644 --- a/plugins/doc_fragments/hwc.py +++ b/plugins/doc_fragments/hwc.py @@ -2,6 +2,9 @@ # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/infinibox.py b/plugins/doc_fragments/infinibox.py index 094ba91838..ae22701ce5 100644 --- a/plugins/doc_fragments/infinibox.py +++ b/plugins/doc_fragments/infinibox.py @@ -3,6 +3,9 @@ # Copyright: (c) 2016, Gregory Shulov # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/influxdb.py b/plugins/doc_fragments/influxdb.py index b7e9e00e68..2e0210b819 100644 --- a/plugins/doc_fragments/influxdb.py +++ b/plugins/doc_fragments/influxdb.py @@ -4,6 +4,9 @@ # Copyright: (c) 2017, Abhijeet Kasurde (akasurde@redhat.com) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): # Parameters for influxdb modules diff --git a/plugins/doc_fragments/ipa.py b/plugins/doc_fragments/ipa.py index 182543beb3..47bcee60ba 100644 --- a/plugins/doc_fragments/ipa.py +++ b/plugins/doc_fragments/ipa.py @@ -4,6 +4,9 @@ # Copyright: (c) 2017-18, Abhijeet Kasurde (akasurde@redhat.com) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): # Parameters for FreeIPA/IPA modules diff --git a/plugins/doc_fragments/keycloak.py b/plugins/doc_fragments/keycloak.py index 4eedf23bd9..e664d7ec89 100644 --- a/plugins/doc_fragments/keycloak.py +++ b/plugins/doc_fragments/keycloak.py @@ -3,6 +3,9 @@ # Copyright: (c) 2017, Eike Frost # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/kubevirt_common_options.py b/plugins/doc_fragments/kubevirt_common_options.py index e289476943..1d3c98fd56 100644 --- a/plugins/doc_fragments/kubevirt_common_options.py +++ b/plugins/doc_fragments/kubevirt_common_options.py @@ -3,6 +3,9 @@ # Copyright: (c) 2018, KubeVirt Team <@kubevirt> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): DOCUMENTATION = r''' diff --git a/plugins/doc_fragments/kubevirt_vm_options.py b/plugins/doc_fragments/kubevirt_vm_options.py index c1f5b69fb6..ba5dc33204 100644 --- a/plugins/doc_fragments/kubevirt_vm_options.py +++ b/plugins/doc_fragments/kubevirt_vm_options.py @@ -3,6 +3,9 @@ # Copyright: (c) 2018, KubeVirt Team <@kubevirt> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/ldap.py b/plugins/doc_fragments/ldap.py index a2c04962d5..890c22eeff 100644 --- a/plugins/doc_fragments/ldap.py +++ b/plugins/doc_fragments/ldap.py @@ -5,6 +5,9 @@ # Copyright: (c) 2017-2018 Keller Fuchs (@KellerFuchs) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): # Standard LDAP documentation fragment diff --git a/plugins/doc_fragments/lxca_common.py b/plugins/doc_fragments/lxca_common.py index 7f9eddd1f3..c55eca16ac 100644 --- a/plugins/doc_fragments/lxca_common.py +++ b/plugins/doc_fragments/lxca_common.py @@ -1,34 +1,10 @@ # -*- coding: utf-8 -*- -# This code is part of Ansible, but is an independent component. -# This particular file snippet, and this file snippet only, is BSD licensed. -# Modules you write using this snippet, which is embedded dynamically by -# Ansible still belong to the author of the module, and may assign their -# own license to the complete work. -# # Copyright (C) 2017 Lenovo, Inc. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/manageiq.py b/plugins/doc_fragments/manageiq.py index c4b2360347..6c6d54c48d 100644 --- a/plugins/doc_fragments/manageiq.py +++ b/plugins/doc_fragments/manageiq.py @@ -3,6 +3,9 @@ # Copyright: (c) 2017, Daniel Korn # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/mysql.py b/plugins/doc_fragments/mysql.py index 93c8d3475f..4858d89b43 100644 --- a/plugins/doc_fragments/mysql.py +++ b/plugins/doc_fragments/mysql.py @@ -3,6 +3,9 @@ # Copyright: (c) 2015, Jonathan Mainguy # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/nios.py b/plugins/doc_fragments/nios.py index d2c4507ff5..7a2c21ea20 100644 --- a/plugins/doc_fragments/nios.py +++ b/plugins/doc_fragments/nios.py @@ -3,6 +3,9 @@ # Copyright: (c) 2015, Peter Sprygada # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/oneview.py b/plugins/doc_fragments/oneview.py index 13802d136b..bbbcbeea45 100644 --- a/plugins/doc_fragments/oneview.py +++ b/plugins/doc_fragments/oneview.py @@ -3,6 +3,9 @@ # Copyright: (c) 2016-2017, Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/online.py b/plugins/doc_fragments/online.py index 08a11da356..0d7ca5718b 100644 --- a/plugins/doc_fragments/online.py +++ b/plugins/doc_fragments/online.py @@ -2,6 +2,9 @@ # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/opennebula.py b/plugins/doc_fragments/opennebula.py index b1ac91fa4a..08b614a6fc 100644 --- a/plugins/doc_fragments/opennebula.py +++ b/plugins/doc_fragments/opennebula.py @@ -3,6 +3,9 @@ # Copyright: (c) 2018, www.privaz.io Valletech AB # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): # OpenNebula common documentation diff --git a/plugins/doc_fragments/openswitch.py b/plugins/doc_fragments/openswitch.py index b4eac582dc..7ab7c15540 100644 --- a/plugins/doc_fragments/openswitch.py +++ b/plugins/doc_fragments/openswitch.py @@ -3,6 +3,9 @@ # Copyright: (c) 2015, Peter Sprygada # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/oracle.py b/plugins/doc_fragments/oracle.py index f894cae3ed..776c8f52f1 100644 --- a/plugins/doc_fragments/oracle.py +++ b/plugins/doc_fragments/oracle.py @@ -1,6 +1,9 @@ # Copyright (c) 2018, Oracle and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): DOCUMENTATION = """ diff --git a/plugins/doc_fragments/oracle_creatable_resource.py b/plugins/doc_fragments/oracle_creatable_resource.py index db7fe378ed..d8f2210104 100644 --- a/plugins/doc_fragments/oracle_creatable_resource.py +++ b/plugins/doc_fragments/oracle_creatable_resource.py @@ -1,6 +1,9 @@ # Copyright (c) 2018, Oracle and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): DOCUMENTATION = """ diff --git a/plugins/doc_fragments/oracle_display_name_option.py b/plugins/doc_fragments/oracle_display_name_option.py index 029221c566..01f92f183b 100644 --- a/plugins/doc_fragments/oracle_display_name_option.py +++ b/plugins/doc_fragments/oracle_display_name_option.py @@ -1,6 +1,9 @@ # Copyright (c) 2018, Oracle and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): DOCUMENTATION = """ diff --git a/plugins/doc_fragments/oracle_name_option.py b/plugins/doc_fragments/oracle_name_option.py index 302ba12ce1..9a7b0226f7 100644 --- a/plugins/doc_fragments/oracle_name_option.py +++ b/plugins/doc_fragments/oracle_name_option.py @@ -1,6 +1,9 @@ # Copyright (c) 2018, Oracle and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): DOCUMENTATION = """ diff --git a/plugins/doc_fragments/oracle_tags.py b/plugins/doc_fragments/oracle_tags.py index d85ed60b28..1d9cae0e8f 100644 --- a/plugins/doc_fragments/oracle_tags.py +++ b/plugins/doc_fragments/oracle_tags.py @@ -1,6 +1,9 @@ # Copyright (c) 2018, Oracle and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): DOCUMENTATION = """ diff --git a/plugins/doc_fragments/oracle_wait_options.py b/plugins/doc_fragments/oracle_wait_options.py index 394a7cd530..248319c2e8 100644 --- a/plugins/doc_fragments/oracle_wait_options.py +++ b/plugins/doc_fragments/oracle_wait_options.py @@ -1,6 +1,9 @@ # Copyright (c) 2018, Oracle and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): DOCUMENTATION = """ diff --git a/plugins/doc_fragments/postgres.py b/plugins/doc_fragments/postgres.py index f093f54209..a207bc35e0 100644 --- a/plugins/doc_fragments/postgres.py +++ b/plugins/doc_fragments/postgres.py @@ -2,6 +2,9 @@ # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): # Postgres documentation fragment diff --git a/plugins/doc_fragments/proxysql.py b/plugins/doc_fragments/proxysql.py index cd67e8b160..55cb60a721 100644 --- a/plugins/doc_fragments/proxysql.py +++ b/plugins/doc_fragments/proxysql.py @@ -3,6 +3,9 @@ # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/purestorage.py b/plugins/doc_fragments/purestorage.py index 53fe0f841e..f35f026711 100644 --- a/plugins/doc_fragments/purestorage.py +++ b/plugins/doc_fragments/purestorage.py @@ -3,6 +3,9 @@ # Copyright: (c) 2017, Simon Dodsley # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/rackspace.py b/plugins/doc_fragments/rackspace.py index 418f569322..1f53654eb7 100644 --- a/plugins/doc_fragments/rackspace.py +++ b/plugins/doc_fragments/rackspace.py @@ -3,6 +3,9 @@ # Copyright: (c) 2014, Matt Martz # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/scaleway.py b/plugins/doc_fragments/scaleway.py index 844f14a209..44d786de8c 100644 --- a/plugins/doc_fragments/scaleway.py +++ b/plugins/doc_fragments/scaleway.py @@ -3,6 +3,9 @@ # Copyright: (c) 2018, Yanis Guenane # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/utm.py b/plugins/doc_fragments/utm.py index 690fb5232e..413fb49675 100644 --- a/plugins/doc_fragments/utm.py +++ b/plugins/doc_fragments/utm.py @@ -3,6 +3,9 @@ # Copyright: (c) 2018, Johannes Brunswicker # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): DOCUMENTATION = r''' diff --git a/plugins/doc_fragments/vexata.py b/plugins/doc_fragments/vexata.py index 066a815d3e..9f756cc877 100644 --- a/plugins/doc_fragments/vexata.py +++ b/plugins/doc_fragments/vexata.py @@ -2,6 +2,9 @@ # Copyright: (c) 2019, Sandeep Kasargod # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): diff --git a/plugins/doc_fragments/xenserver.py b/plugins/doc_fragments/xenserver.py index 5be67da4c3..747bf02f1b 100644 --- a/plugins/doc_fragments/xenserver.py +++ b/plugins/doc_fragments/xenserver.py @@ -3,6 +3,9 @@ # Copyright: (c) 2018, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class ModuleDocFragment(object): # Common parameters for XenServer modules diff --git a/plugins/module_utils/alicloud_ecs.py b/plugins/module_utils/alicloud_ecs.py index 9b5322c77c..3c87c1ad76 100644 --- a/plugins/module_utils/alicloud_ecs.py +++ b/plugins/module_utils/alicloud_ecs.py @@ -6,25 +6,10 @@ # # Copyright (c) 2017-present Alibaba Group Holding Limited. He Guimin # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import os import json diff --git a/plugins/module_utils/cloud.py b/plugins/module_utils/cloud.py index 0d29071fe1..33b3308452 100644 --- a/plugins/module_utils/cloud.py +++ b/plugins/module_utils/cloud.py @@ -1,21 +1,12 @@ # # (c) 2016 Allen Sanabria, # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . -# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + + """ This module adds shared support for generic cloud modules diff --git a/plugins/module_utils/compat/ipaddress.py b/plugins/module_utils/compat/ipaddress.py index 49cce24d40..db4e91b784 100644 --- a/plugins/module_utils/compat/ipaddress.py +++ b/plugins/module_utils/compat/ipaddress.py @@ -60,7 +60,9 @@ and networks. """ +from __future__ import (absolute_import, division, print_function) from __future__ import unicode_literals +__metaclass__ = type import itertools diff --git a/plugins/module_utils/database.py b/plugins/module_utils/database.py index 67bdb43257..67850308e0 100644 --- a/plugins/module_utils/database.py +++ b/plugins/module_utils/database.py @@ -5,26 +5,11 @@ # to the complete work. # # Copyright (c) 2014, Toshio Kuratomi -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import re diff --git a/plugins/module_utils/digital_ocean.py b/plugins/module_utils/digital_ocean.py index fc30343e28..53c731eea1 100644 --- a/plugins/module_utils/digital_ocean.py +++ b/plugins/module_utils/digital_ocean.py @@ -5,26 +5,10 @@ # to the complete work. # # Copyright (c), Ansible Project 2017 -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import json import os diff --git a/plugins/module_utils/dimensiondata.py b/plugins/module_utils/dimensiondata.py index 179c3eff9c..bcb02e8476 100644 --- a/plugins/module_utils/dimensiondata.py +++ b/plugins/module_utils/dimensiondata.py @@ -2,25 +2,17 @@ # # Copyright (c) 2016 Dimension Data # -# This module is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This software is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this software. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # Authors: # - Aimon Bustardo # - Mark Maglana # - Adam Friedman # -# Common functionality to be used by versious module components +# Common functionality to be used by various module components + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import os import re diff --git a/plugins/module_utils/firewalld.py b/plugins/module_utils/firewalld.py index b44e0316aa..f5937a5c49 100644 --- a/plugins/module_utils/firewalld.py +++ b/plugins/module_utils/firewalld.py @@ -3,6 +3,9 @@ # (c) 2013-2018, Adam Miller (maxamillion@fedoraproject.org) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + # Imports and info for sanity checking from distutils.version import LooseVersion diff --git a/plugins/module_utils/gcdns.py b/plugins/module_utils/gcdns.py index 8aff67afa2..1c61510f2d 100644 --- a/plugins/module_utils/gcdns.py +++ b/plugins/module_utils/gcdns.py @@ -5,27 +5,11 @@ # to the complete work. # # Copyright (c), Franck Cuny , 2014 -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type try: from libcloud.dns.types import Provider diff --git a/plugins/module_utils/gce.py b/plugins/module_utils/gce.py index 053527575a..292bb8b965 100644 --- a/plugins/module_utils/gce.py +++ b/plugins/module_utils/gce.py @@ -5,26 +5,11 @@ # to the complete work. # # Copyright (c), Franck Cuny , 2014 -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type try: from libcloud.compute.types import Provider diff --git a/plugins/module_utils/gcp.py b/plugins/module_utils/gcp.py index 508df44ab6..a034f3b6c9 100644 --- a/plugins/module_utils/gcp.py +++ b/plugins/module_utils/gcp.py @@ -5,27 +5,11 @@ # to the complete work. # # Copyright (c), Franck Cuny , 2014 -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import json import os diff --git a/plugins/module_utils/gitlab.py b/plugins/module_utils/gitlab.py index 5d8a7fea2b..e13f38c099 100644 --- a/plugins/module_utils/gitlab.py +++ b/plugins/module_utils/gitlab.py @@ -4,7 +4,9 @@ # Copyright: (c) 2018, Marcus Watkins # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json from distutils.version import StrictVersion diff --git a/plugins/module_utils/hwc_utils.py b/plugins/module_utils/hwc_utils.py index 52b5cb5cf8..05e0c1378d 100644 --- a/plugins/module_utils/hwc_utils.py +++ b/plugins/module_utils/hwc_utils.py @@ -2,6 +2,9 @@ # Simplified BSD License (see licenses/simplified_bsd.txt or # https://opensource.org/licenses/BSD-2-Clause) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import re import time import traceback diff --git a/plugins/module_utils/infinibox.py b/plugins/module_utils/infinibox.py index 57ee89ec2c..afca2ef4ba 100644 --- a/plugins/module_utils/infinibox.py +++ b/plugins/module_utils/infinibox.py @@ -7,26 +7,11 @@ # to the complete work. # # Copyright (c), Gregory Shulov ,2016 -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type HAS_INFINISDK = True try: diff --git a/plugins/module_utils/ipa.py b/plugins/module_utils/ipa.py index 73e26a190c..6a0e7712de 100644 --- a/plugins/module_utils/ipa.py +++ b/plugins/module_utils/ipa.py @@ -6,26 +6,11 @@ # to the complete work. # # Copyright (c) 2016 Thomas Krahn (@Nosmoht) -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import json import os diff --git a/plugins/module_utils/known_hosts.py b/plugins/module_utils/known_hosts.py index 42f067f225..96f91ba80e 100644 --- a/plugins/module_utils/known_hosts.py +++ b/plugins/module_utils/known_hosts.py @@ -5,26 +5,11 @@ # to the complete work. # # Copyright (c), Michael DeHaan , 2012-2013 -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import os import hmac diff --git a/plugins/module_utils/kubevirt.py b/plugins/module_utils/kubevirt.py index 8c2e8285db..90d8d9ee3b 100644 --- a/plugins/module_utils/kubevirt.py +++ b/plugins/module_utils/kubevirt.py @@ -4,6 +4,9 @@ # Copyright (c) 2018, KubeVirt Team <@kubevirt> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from collections import defaultdict from distutils.version import Version diff --git a/plugins/module_utils/linode.py b/plugins/module_utils/linode.py index a631f74b2f..53d546dbe8 100644 --- a/plugins/module_utils/linode.py +++ b/plugins/module_utils/linode.py @@ -5,27 +5,11 @@ # to the complete work. # # Copyright (c), Luke Murphy @decentral1se -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type def get_user_agent(module): diff --git a/plugins/module_utils/lxd.py b/plugins/module_utils/lxd.py index c53c3a76ab..e835a6abca 100644 --- a/plugins/module_utils/lxd.py +++ b/plugins/module_utils/lxd.py @@ -8,24 +8,11 @@ # still belong to the author of the module, and may assign their own license # to the complete work. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import socket import ssl diff --git a/plugins/module_utils/manageiq.py b/plugins/module_utils/manageiq.py index 36e130f895..7038fac88a 100644 --- a/plugins/module_utils/manageiq.py +++ b/plugins/module_utils/manageiq.py @@ -7,24 +7,10 @@ # still belong to the author of the module, and may assign their own license # to the complete work. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import os diff --git a/plugins/module_utils/memset.py b/plugins/module_utils/memset.py index 51dce0c690..357fded58e 100644 --- a/plugins/module_utils/memset.py +++ b/plugins/module_utils/memset.py @@ -6,24 +6,10 @@ # # Copyright (c) 2018, Simon Weald # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible.module_utils.six.moves.urllib.parse import urlencode from ansible.module_utils.urls import open_url, urllib_error diff --git a/plugins/module_utils/mysql.py b/plugins/module_utils/mysql.py index 03b957bee5..b5beb02751 100644 --- a/plugins/module_utils/mysql.py +++ b/plugins/module_utils/mysql.py @@ -6,26 +6,11 @@ # # Copyright (c), Jonathan Mainguy , 2015 # Most of this was originally added by Sven Schliesing @muffl0n in the mysql_user.py module -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import os diff --git a/plugins/module_utils/net_tools/nios/api.py b/plugins/module_utils/net_tools/nios/api.py index 2a759033e2..7861d76c85 100644 --- a/plugins/module_utils/net_tools/nios/api.py +++ b/plugins/module_utils/net_tools/nios/api.py @@ -6,25 +6,11 @@ # # (c) 2018 Red Hat Inc. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import os from functools import partial diff --git a/plugins/module_utils/oneandone.py b/plugins/module_utils/oneandone.py index 75cfbae695..466d2665fa 100644 --- a/plugins/module_utils/oneandone.py +++ b/plugins/module_utils/oneandone.py @@ -4,25 +4,11 @@ # still belong to the author of the module, and may assign their own license # to the complete work. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import time diff --git a/plugins/module_utils/oneview.py b/plugins/module_utils/oneview.py index 0d3116c8e6..bfa5f09102 100644 --- a/plugins/module_utils/oneview.py +++ b/plugins/module_utils/oneview.py @@ -5,28 +5,11 @@ # to the complete work. # # Copyright (2016-2017) Hewlett Packard Enterprise Development LP -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import abc import collections diff --git a/plugins/module_utils/opennebula.py b/plugins/module_utils/opennebula.py index a520e32187..0b95c6185b 100644 --- a/plugins/module_utils/opennebula.py +++ b/plugins/module_utils/opennebula.py @@ -1,7 +1,11 @@ # # Copyright 2018 www.privaz.io Valletech AB +# # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import time import ssl diff --git a/plugins/module_utils/oracle/oci_utils.py b/plugins/module_utils/oracle/oci_utils.py index 368337a496..72a872fcb3 100644 --- a/plugins/module_utils/oracle/oci_utils.py +++ b/plugins/module_utils/oracle/oci_utils.py @@ -1,7 +1,8 @@ # Copyright (c) 2017, 2018, 2019 Oracle and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import logging import logging.config diff --git a/plugins/module_utils/postgres.py b/plugins/module_utils/postgres.py index 5324d80676..f0d6f88e72 100644 --- a/plugins/module_utils/postgres.py +++ b/plugins/module_utils/postgres.py @@ -6,26 +6,11 @@ # # Copyright (c), Ted Timmons , 2017. # Most of this was originally added by other creators in the postgresql_user module. -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type psycopg2 = None # This line needs for unit tests try: diff --git a/plugins/module_utils/pure.py b/plugins/module_utils/pure.py index 019c11add2..ebd41b1ce5 100644 --- a/plugins/module_utils/pure.py +++ b/plugins/module_utils/pure.py @@ -7,26 +7,10 @@ # to the complete work. # # Copyright (c), Simon Dodsley ,2017 -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type HAS_PURESTORAGE = True try: diff --git a/plugins/module_utils/rax.py b/plugins/module_utils/rax.py index d8607541f2..e8c455e0e9 100644 --- a/plugins/module_utils/rax.py +++ b/plugins/module_utils/rax.py @@ -5,28 +5,12 @@ # license to the complete work. # # Copyright (c), Michael DeHaan , 2012-2013 -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import os import re diff --git a/plugins/module_utils/redhat.py b/plugins/module_utils/redhat.py index 358a2bd7b1..0fb6e9b1f3 100644 --- a/plugins/module_utils/redhat.py +++ b/plugins/module_utils/redhat.py @@ -5,26 +5,12 @@ # to the complete work. # # Copyright (c), James Laska -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import os import re diff --git a/plugins/module_utils/remote_management/dellemc/dellemc_idrac.py b/plugins/module_utils/remote_management/dellemc/dellemc_idrac.py index b633b93ebf..93d3bfcb74 100644 --- a/plugins/module_utils/remote_management/dellemc/dellemc_idrac.py +++ b/plugins/module_utils/remote_management/dellemc/dellemc_idrac.py @@ -10,8 +10,7 @@ # Other trademarks may be trademarks of their respective owners. # -from __future__ import (absolute_import, division, - print_function) +from __future__ import (absolute_import, division, print_function) __metaclass__ = type try: diff --git a/plugins/module_utils/remote_management/dellemc/ome.py b/plugins/module_utils/remote_management/dellemc/ome.py index c387e2a164..9d02e55004 100644 --- a/plugins/module_utils/remote_management/dellemc/ome.py +++ b/plugins/module_utils/remote_management/dellemc/ome.py @@ -3,26 +3,8 @@ # Dell EMC OpenManage Ansible Modules # Version 1.3 # Copyright (C) 2019 Dell Inc. or its subsidiaries. All Rights Reserved. - -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: - -# * Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. - -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/remote_management/lxca/common.py b/plugins/module_utils/remote_management/lxca/common.py index 50080ccb4b..297397e30d 100644 --- a/plugins/module_utils/remote_management/lxca/common.py +++ b/plugins/module_utils/remote_management/lxca/common.py @@ -5,31 +5,14 @@ # own license to the complete work. # # Copyright (C) 2017 Lenovo, Inc. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) # # Contains LXCA common class # Lenovo xClarity Administrator (LXCA) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import traceback try: from pylxca import connect, disconnect diff --git a/plugins/module_utils/saslprep.py b/plugins/module_utils/saslprep.py index 297882878f..3e16c7169e 100644 --- a/plugins/module_utils/saslprep.py +++ b/plugins/module_utils/saslprep.py @@ -7,6 +7,8 @@ # to the complete work. # Copyright: (c) 2020, Andrew Klychkov (@Andersson007) +# +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/scaleway.py b/plugins/module_utils/scaleway.py index 02e09394e6..abb6802105 100644 --- a/plugins/module_utils/scaleway.py +++ b/plugins/module_utils/scaleway.py @@ -1,3 +1,6 @@ +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import re import sys diff --git a/plugins/module_utils/source_control/bitbucket.py b/plugins/module_utils/source_control/bitbucket.py index 8359eec11f..c17dcb1d9e 100644 --- a/plugins/module_utils/source_control/bitbucket.py +++ b/plugins/module_utils/source_control/bitbucket.py @@ -2,8 +2,8 @@ # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) -# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import json @@ -11,9 +11,6 @@ from ansible.module_utils._text import to_text from ansible.module_utils.basic import env_fallback from ansible.module_utils.urls import fetch_url, basic_auth_header -# Makes all classes defined in the file into new-style classes without explicitly inheriting from object -__metaclass__ = type - class BitbucketHelper: BITBUCKET_API_URL = 'https://api.bitbucket.org' diff --git a/plugins/module_utils/storage/emc/emc_vnx.py b/plugins/module_utils/storage/emc/emc_vnx.py index c6177e5367..afb1b6979c 100644 --- a/plugins/module_utils/storage/emc/emc_vnx.py +++ b/plugins/module_utils/storage/emc/emc_vnx.py @@ -6,25 +6,11 @@ # # (c) 2018 Luca 'remix_tj' Lorenzetto # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + emc_vnx_argument_spec = { 'sp_address': dict(type='str', required=True), diff --git a/plugins/module_utils/storage/hpe3par/hpe3par.py b/plugins/module_utils/storage/hpe3par/hpe3par.py index 2495f9be1b..47868a4b8c 100644 --- a/plugins/module_utils/storage/hpe3par/hpe3par.py +++ b/plugins/module_utils/storage/hpe3par/hpe3par.py @@ -1,6 +1,10 @@ # Copyright: (c) 2018, Hewlett Packard Enterprise Development LP # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + + from ansible.module_utils import basic diff --git a/plugins/module_utils/univention_umc.py b/plugins/module_utils/univention_umc.py index 9c84930cf5..c1d8b77749 100644 --- a/plugins/module_utils/univention_umc.py +++ b/plugins/module_utils/univention_umc.py @@ -9,25 +9,10 @@ # Copyright (c) 2016, Adfinis SyGroup AG # Tobias Rueetschi # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type """Univention Corporate Server (UCS) access module. diff --git a/plugins/module_utils/utm_utils.py b/plugins/module_utils/utm_utils.py index ba193713f4..0966dc500f 100644 --- a/plugins/module_utils/utm_utils.py +++ b/plugins/module_utils/utm_utils.py @@ -6,27 +6,9 @@ # # Copyright: (c) 2018, Johannes Brunswicker # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import (absolute_import, division, print_function) - __metaclass__ = type import json diff --git a/plugins/module_utils/vexata.py b/plugins/module_utils/vexata.py index 072def8744..e5c9bdb819 100644 --- a/plugins/module_utils/vexata.py +++ b/plugins/module_utils/vexata.py @@ -3,6 +3,9 @@ # Copyright: (c) 2019, Sandeep Kasargod # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + HAS_VEXATAPI = True try: diff --git a/scripts/inventory/abiquo.py b/scripts/inventory/abiquo.py index 5a7950bd70..7602a1d2cb 100644 --- a/scripts/inventory/abiquo.py +++ b/scripts/inventory/abiquo.py @@ -28,18 +28,10 @@ imagetemplate: Creates a host group for each image template containing all hosts # # This file is part of Ansible, # -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import os import sys diff --git a/scripts/inventory/apache-libcloud.py b/scripts/inventory/apache-libcloud.py index 3857d2f934..b05752352f 100644 --- a/scripts/inventory/apache-libcloud.py +++ b/scripts/inventory/apache-libcloud.py @@ -2,20 +2,10 @@ # (c) 2013, Sebastien Goasguen # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ###################################################################### diff --git a/scripts/inventory/apstra_aos.py b/scripts/inventory/apstra_aos.py index 7b9af7db5c..ce2eb3def7 100644 --- a/scripts/inventory/apstra_aos.py +++ b/scripts/inventory/apstra_aos.py @@ -2,21 +2,12 @@ # # (c) 2017 Apstra Inc, # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + """ Apstra AOS external inventory script ==================================== diff --git a/scripts/inventory/azure_rm.py b/scripts/inventory/azure_rm.py index 18d46ef0a5..ef9e7b1da4 100644 --- a/scripts/inventory/azure_rm.py +++ b/scripts/inventory/azure_rm.py @@ -3,21 +3,10 @@ # Copyright (c) 2016 Matt Davis, # Chris Houseknecht, # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . -# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ''' Important note (2018/10) diff --git a/scripts/inventory/brook.py b/scripts/inventory/brook.py index 236571315b..1acd370ec3 100644 --- a/scripts/inventory/brook.py +++ b/scripts/inventory/brook.py @@ -1,20 +1,10 @@ #!/usr/bin/env python # Copyright 2016 Doalitic. # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type """ Brook.io external inventory script diff --git a/scripts/inventory/cloudforms.py b/scripts/inventory/cloudforms.py index 0057940930..72b4419cc8 100644 --- a/scripts/inventory/cloudforms.py +++ b/scripts/inventory/cloudforms.py @@ -3,24 +3,11 @@ # # Copyright (C) 2016 Guido Günther # -# This script is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with it. If not, see . -# -# This is loosely based on the foreman inventory script -# -- Josh Preston -# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type -from __future__ import print_function import argparse from ansible.module_utils.six.moves import configparser as ConfigParser import os diff --git a/scripts/inventory/cobbler.py b/scripts/inventory/cobbler.py index 60195ac197..84d594720e 100644 --- a/scripts/inventory/cobbler.py +++ b/scripts/inventory/cobbler.py @@ -41,20 +41,10 @@ Changelog: # (c) 2012, Michael DeHaan # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ###################################################################### diff --git a/scripts/inventory/collins.py b/scripts/inventory/collins.py index 39f6c4b447..f481649eeb 100644 --- a/scripts/inventory/collins.py +++ b/scripts/inventory/collins.py @@ -48,20 +48,10 @@ Tested against Ansible 1.8.2 and Collins 1.3.0. # (c) 2014, Steve Salevan # -# This file is part of Ansible. -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ###################################################################### diff --git a/scripts/inventory/consul_io.py b/scripts/inventory/consul_io.py index 4dad3eeec1..00832241d0 100644 --- a/scripts/inventory/consul_io.py +++ b/scripts/inventory/consul_io.py @@ -3,20 +3,10 @@ # # (c) 2015, Steve Gargan # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ###################################################################### diff --git a/scripts/inventory/digital_ocean.py b/scripts/inventory/digital_ocean.py index eecdb85c1c..383b329a11 100644 --- a/scripts/inventory/digital_ocean.py +++ b/scripts/inventory/digital_ocean.py @@ -119,20 +119,10 @@ optional arguments: # Inspired by the EC2 inventory plugin: # https://github.com/ansible/ansible/blob/devel/contrib/inventory/ec2.py # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ###################################################################### diff --git a/scripts/inventory/docker.py b/scripts/inventory/docker.py index 489c820a23..b029d1f51b 100644 --- a/scripts/inventory/docker.py +++ b/scripts/inventory/docker.py @@ -4,20 +4,7 @@ # Chris Houseknecht # James Tanner # -# This file is part of Ansible. -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import (absolute_import, division, print_function) diff --git a/scripts/inventory/fleet.py b/scripts/inventory/fleet.py index dd0d4f7168..cc9537e115 100644 --- a/scripts/inventory/fleet.py +++ b/scripts/inventory/fleet.py @@ -6,18 +6,10 @@ returns it under the host group 'coreos' # Copyright (C) 2014 Andrew Rothstein # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type # # Thanks to the vagrant.py inventory script for giving me the basic structure diff --git a/scripts/inventory/foreman.py b/scripts/inventory/foreman.py index 343cf26c9d..f2e729b6a7 100644 --- a/scripts/inventory/foreman.py +++ b/scripts/inventory/foreman.py @@ -4,24 +4,13 @@ # Copyright (C) 2016 Guido Günther , # Daniel Lobato Garcia # -# This script is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with it. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # This is somewhat based on cobbler inventory -# Stdlib imports -# __future__ imports must occur at the beginning of file -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import argparse import copy diff --git a/scripts/inventory/freeipa.py b/scripts/inventory/freeipa.py index cb5ccc071a..4a5bf67883 100644 --- a/scripts/inventory/freeipa.py +++ b/scripts/inventory/freeipa.py @@ -2,6 +2,9 @@ # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import argparse from distutils.version import LooseVersion import json diff --git a/scripts/inventory/gce.py b/scripts/inventory/gce.py index 0a7df3f52a..05a93f483d 100644 --- a/scripts/inventory/gce.py +++ b/scripts/inventory/gce.py @@ -3,6 +3,9 @@ # Copyright: (c) 2013, Google Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + ''' GCE external inventory script ================================= diff --git a/scripts/inventory/infoblox.py b/scripts/inventory/infoblox.py index 8c6a074186..6b2cae0b3f 100644 --- a/scripts/inventory/infoblox.py +++ b/scripts/inventory/infoblox.py @@ -2,21 +2,11 @@ # # (c) 2018, Red Hat, Inc. # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . -# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import os import sys import json diff --git a/scripts/inventory/jail.py b/scripts/inventory/jail.py index 9a2ccf18fe..a28b923b10 100644 --- a/scripts/inventory/jail.py +++ b/scripts/inventory/jail.py @@ -2,20 +2,10 @@ # (c) 2013, Michael Scherer # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from subprocess import Popen, PIPE import sys diff --git a/scripts/inventory/landscape.py b/scripts/inventory/landscape.py index 9aa660bef8..8301e00b71 100644 --- a/scripts/inventory/landscape.py +++ b/scripts/inventory/landscape.py @@ -4,18 +4,10 @@ # # This file is part of Ansible. # -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type # Dynamic inventory script which lets you use nodes discovered by Canonical's # Landscape (http://www.ubuntu.com/management/landscape-features). diff --git a/scripts/inventory/linode.py b/scripts/inventory/linode.py index f4ae302816..2972725d88 100644 --- a/scripts/inventory/linode.py +++ b/scripts/inventory/linode.py @@ -57,20 +57,10 @@ just adapted that for Linode. # (c) 2013, Dan Slimmon # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ###################################################################### diff --git a/scripts/inventory/lxc_inventory.py b/scripts/inventory/lxc_inventory.py index 86a6b22c2d..00de15c2be 100644 --- a/scripts/inventory/lxc_inventory.py +++ b/scripts/inventory/lxc_inventory.py @@ -5,20 +5,8 @@ # Based in part on: # libvirt_lxc.py, (c) 2013, Michael Scherer # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + """ Ansible inventory script for LXC containers. Requires Python bindings for LXC API. @@ -29,7 +17,9 @@ configuration. So, we enumerate all containers, fetch their list of groups, and then build the dictionary in the way Ansible expects it. """ -from __future__ import print_function + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import sys import lxc diff --git a/scripts/inventory/lxd.py b/scripts/inventory/lxd.py index 2cb1354277..8e8794eb81 100644 --- a/scripts/inventory/lxd.py +++ b/scripts/inventory/lxd.py @@ -9,18 +9,10 @@ # # NOTE, this file has some obvious limitations, improvements welcome # -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import os from subprocess import Popen, PIPE diff --git a/scripts/inventory/mdt_dynamic_inventory.py b/scripts/inventory/mdt_dynamic_inventory.py index 154aac4f8d..6409e37fe1 100644 --- a/scripts/inventory/mdt_dynamic_inventory.py +++ b/scripts/inventory/mdt_dynamic_inventory.py @@ -2,20 +2,10 @@ # (c) 2016, Julian Barnett # -# This file is part of Ansible. -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ''' MDT external inventory script diff --git a/scripts/inventory/nagios_livestatus.py b/scripts/inventory/nagios_livestatus.py index 25c043b5c0..bdf9f673de 100644 --- a/scripts/inventory/nagios_livestatus.py +++ b/scripts/inventory/nagios_livestatus.py @@ -2,20 +2,10 @@ # (c) 2015, Yannig Perre # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ''' Nagios livestatus inventory script. Before using this script, please diff --git a/scripts/inventory/nagios_ndo.py b/scripts/inventory/nagios_ndo.py index 0f89ede659..ffd5500f8e 100644 --- a/scripts/inventory/nagios_ndo.py +++ b/scripts/inventory/nagios_ndo.py @@ -2,20 +2,10 @@ # (c) 2014, Jonathan Lestrelin # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type """ Nagios NDO external inventory script. diff --git a/scripts/inventory/nsot.py b/scripts/inventory/nsot.py index 6b09704d3a..1394e3e3bd 100644 --- a/scripts/inventory/nsot.py +++ b/scripts/inventory/nsot.py @@ -136,7 +136,9 @@ Here are some examples shown from just calling the command directly:: ''' -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import sys import os import pkg_resources diff --git a/scripts/inventory/openshift.py b/scripts/inventory/openshift.py index 8d941a7d27..85ea00cb1d 100644 --- a/scripts/inventory/openshift.py +++ b/scripts/inventory/openshift.py @@ -2,20 +2,10 @@ # (c) 2013, Michael Scherer # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type DOCUMENTATION = ''' --- diff --git a/scripts/inventory/openvz.py b/scripts/inventory/openvz.py index 5ea039c827..95eec83912 100644 --- a/scripts/inventory/openvz.py +++ b/scripts/inventory/openvz.py @@ -4,21 +4,7 @@ # openvz.py # # Copyright 2014 jordonr -# -# This file is part of Ansible. -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # Inspired by libvirt_lxc.py inventory script # https://github.com/ansible/ansible/blob/e5ef0eca03cbb6c8950c06dc50d0ca22aa8902f4/plugins/inventory/libvirt_lxc.py @@ -26,6 +12,9 @@ # Groups are determined by the description field of openvz guests # multiple groups can be separated by commas: webserver,dbserver +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from subprocess import Popen, PIPE import sys import json diff --git a/scripts/inventory/ovirt.py b/scripts/inventory/ovirt.py index f97ab7a24a..04f7fc58ae 100644 --- a/scripts/inventory/ovirt.py +++ b/scripts/inventory/ovirt.py @@ -1,20 +1,10 @@ #!/usr/bin/env python # Copyright 2015 IIX Inc. # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type """ ovirt external inventory script diff --git a/scripts/inventory/ovirt4.py b/scripts/inventory/ovirt4.py index 74205ae449..afff18dbdb 100644 --- a/scripts/inventory/ovirt4.py +++ b/scripts/inventory/ovirt4.py @@ -3,21 +3,11 @@ # # Copyright (c) 2016 Red Hat, Inc. # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . -# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + """ oVirt dynamic inventory script diff --git a/scripts/inventory/packet_net.py b/scripts/inventory/packet_net.py index 22f989a9d9..9466017140 100644 --- a/scripts/inventory/packet_net.py +++ b/scripts/inventory/packet_net.py @@ -21,20 +21,10 @@ different path to packet_net.ini, define the PACKET_NET_INI_PATH environment var # (c) 2016, Peter Sankauskas # (c) 2017, Tomas Karasek # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ###################################################################### diff --git a/scripts/inventory/proxmox.py b/scripts/inventory/proxmox.py index 0538ca8a9b..2196934115 100644 --- a/scripts/inventory/proxmox.py +++ b/scripts/inventory/proxmox.py @@ -2,18 +2,10 @@ # Copyright (C) 2014 Mathieu GAUTHIER-LAFAYE # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type # Updated 2016 by Matt Harris # diff --git a/scripts/inventory/rackhd.py b/scripts/inventory/rackhd.py index e7a5cca5f5..9b4372f679 100644 --- a/scripts/inventory/rackhd.py +++ b/scripts/inventory/rackhd.py @@ -1,19 +1,9 @@ #!/usr/bin/env python +# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import json import os diff --git a/scripts/inventory/rax.py b/scripts/inventory/rax.py index c6d512cd12..0cac0f002c 100644 --- a/scripts/inventory/rax.py +++ b/scripts/inventory/rax.py @@ -4,20 +4,10 @@ # Paul Durivage , # Matt Martz # -# This file is part of Ansible. -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type """ Rackspace Cloud Inventory diff --git a/scripts/inventory/rudder.py b/scripts/inventory/rudder.py index 4722fcf1e4..9a65aca99a 100644 --- a/scripts/inventory/rudder.py +++ b/scripts/inventory/rudder.py @@ -5,20 +5,10 @@ # Inspired by the EC2 inventory plugin: # https://github.com/ansible/ansible/blob/devel/contrib/inventory/ec2.py # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type ###################################################################### diff --git a/scripts/inventory/scaleway.py b/scripts/inventory/scaleway.py index 32999cc0e7..f68eb128a5 100644 --- a/scripts/inventory/scaleway.py +++ b/scripts/inventory/scaleway.py @@ -23,20 +23,10 @@ all: Contains all hosts defined in Scaleway. # (c) 2017, Paul B. # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import copy import os diff --git a/scripts/inventory/serf.py b/scripts/inventory/serf.py index 8a24027dd4..df917ef554 100644 --- a/scripts/inventory/serf.py +++ b/scripts/inventory/serf.py @@ -1,21 +1,10 @@ #!/usr/bin/env python # (c) 2015, Marc Abramowitz -# -# This file is part of Ansible. -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type # Dynamic inventory script which lets you use nodes discovered by Serf # (https://serfdom.io/). diff --git a/scripts/inventory/softlayer.py b/scripts/inventory/softlayer.py index 016eb4c060..03f9820ad2 100644 --- a/scripts/inventory/softlayer.py +++ b/scripts/inventory/softlayer.py @@ -14,18 +14,10 @@ via the command `sl config setup`. # Copyright (C) 2014 AJ Bourg # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type # # I found the structure of the ec2.py script very helpful as an example diff --git a/scripts/inventory/spacewalk.py b/scripts/inventory/spacewalk.py index dc96b1fe3b..b3b8cf8e7f 100644 --- a/scripts/inventory/spacewalk.py +++ b/scripts/inventory/spacewalk.py @@ -26,21 +26,10 @@ Tested with Ansible 1.9.2 and spacewalk 2.3 # adding the "_meta" dictionary to --list output by # Bernhard Lichtinger 2015 # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 2 of the License, or (at -# your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import sys import os diff --git a/scripts/inventory/ssh_config.py b/scripts/inventory/ssh_config.py index c7db6c7a88..ad56a53ebb 100644 --- a/scripts/inventory/ssh_config.py +++ b/scripts/inventory/ssh_config.py @@ -2,20 +2,10 @@ # (c) 2014, Tomas Karasek # -# This file is part of Ansible. -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type # Dynamic inventory script which lets you use aliases from ~/.ssh/config. # diff --git a/scripts/inventory/stacki.py b/scripts/inventory/stacki.py index 98f35c4fb5..2c6bb37c9a 100644 --- a/scripts/inventory/stacki.py +++ b/scripts/inventory/stacki.py @@ -2,18 +2,10 @@ # Copyright (c) 2016, Hugh Ma # -# This module is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This software is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this software. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type # Stacki inventory script # Configure stacki.yml with proper auth information and place in the following: diff --git a/scripts/inventory/vagrant.py b/scripts/inventory/vagrant.py index 96517c30d3..74db0212c5 100644 --- a/scripts/inventory/vagrant.py +++ b/scripts/inventory/vagrant.py @@ -15,18 +15,10 @@ Example Vagrant configuration using this script: # Copyright (C) 2013 Mark Mandel # 2015 Igor Khomyakov # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type # # Thanks to the spacewalk.py inventory script for giving me the basic structure diff --git a/scripts/inventory/vbox.py b/scripts/inventory/vbox.py index 7a0ed702ae..110ead1471 100644 --- a/scripts/inventory/vbox.py +++ b/scripts/inventory/vbox.py @@ -1,19 +1,9 @@ #!/usr/bin/env python -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import sys from subprocess import Popen, PIPE diff --git a/scripts/inventory/zone.py b/scripts/inventory/zone.py index 825e7499b0..9020f9ea79 100644 --- a/scripts/inventory/zone.py +++ b/scripts/inventory/zone.py @@ -2,20 +2,10 @@ # (c) 2015, Dagobert Michelsen # -# This file is part of Ansible, -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from subprocess import Popen, PIPE import sys diff --git a/scripts/vault/azure_vault.py b/scripts/vault/azure_vault.py index 5f15b2d40e..c27418f34f 100644 --- a/scripts/vault/azure_vault.py +++ b/scripts/vault/azure_vault.py @@ -10,6 +10,9 @@ # Altered/Added for Vault functionality: # Austin Hobbs, GitHub: @OxHobbs +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + ''' Ansible Vault Password with Azure Key Vault Secret Script ========================================================= diff --git a/scripts/vault/vault-keyring-client.py b/scripts/vault/vault-keyring-client.py index d78f3eba1c..8332b228f9 100644 --- a/scripts/vault/vault-keyring-client.py +++ b/scripts/vault/vault-keyring-client.py @@ -2,20 +2,8 @@ # -*- coding: utf-8 -*- # (c) 2014, Matt Martz # (c) 2016, Justin Mayer -# This file is part of Ansible. # -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # ============================================================================= # @@ -43,13 +31,13 @@ # contrib/vault/vault-keyring-client.py --vault-id keyring_id # # That will retrieve the password from users keyring for the -# keyring service 'keyring_id'. The equilivent of: +# keyring service 'keyring_id'. The equivalent of: # # keyring get keyring_id $USER # # If no vault-id name is specified to ansible command line, the vault-keyring-client.py # script will be called without a '--vault-id' and will default to the keyring service 'ansible' -# This is equilivent to: +# This is equivalent to: # # keyring get ansible $USER # @@ -74,6 +62,9 @@ # # ansible-playbook --vault-id=keyring_id@/path/to/vault-keyring-client.py site.yml +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import argparse import sys import getpass diff --git a/scripts/vault/vault-keyring.py b/scripts/vault/vault-keyring.py index 646651e5df..45188b122d 100644 --- a/scripts/vault/vault-keyring.py +++ b/scripts/vault/vault-keyring.py @@ -3,20 +3,7 @@ # (c) 2014, Matt Martz # (c) 2016, Justin Mayer # -# This file is part of Ansible. -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # ============================================================================= # @@ -57,6 +44,9 @@ # # ansible-playbook --vault-password-file=/path/to/vault-keyring.py site.yml +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import sys import getpass import keyring diff --git a/tests/integration/targets/inventory_kubevirt/inventory_diff.py b/tests/integration/targets/inventory_kubevirt/inventory_diff.py index ad8b70aa65..f70ff8c17d 100755 --- a/tests/integration/targets/inventory_kubevirt/inventory_diff.py +++ b/tests/integration/targets/inventory_kubevirt/inventory_diff.py @@ -1,5 +1,8 @@ #!/usr/bin/env python +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import sys diff --git a/tests/integration/targets/inventory_kubevirt/server.py b/tests/integration/targets/inventory_kubevirt/server.py index 0a4303e68d..cb56739a2e 100755 --- a/tests/integration/targets/inventory_kubevirt/server.py +++ b/tests/integration/targets/inventory_kubevirt/server.py @@ -1,5 +1,8 @@ #!/usr/bin/env python +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import os diff --git a/tests/integration/targets/supervisorctl/files/sendProcessStdin.py b/tests/integration/targets/supervisorctl/files/sendProcessStdin.py index 4237339ae5..90b318cc82 100644 --- a/tests/integration/targets/supervisorctl/files/sendProcessStdin.py +++ b/tests/integration/targets/supervisorctl/files/sendProcessStdin.py @@ -1,7 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import sys -import time proc = sys.argv[1] value = sys.argv[2] diff --git a/tests/sanity/ignore-2.10.txt b/tests/sanity/ignore-2.10.txt index 6b35929c40..227a2c9cd9 100644 --- a/tests/sanity/ignore-2.10.txt +++ b/tests/sanity/ignore-2.10.txt @@ -1,155 +1,7 @@ plugins/callback/hipchat.py pylint:blacklisted-name plugins/connection/lxc.py pylint:blacklisted-name -plugins/doc_fragments/_gcp.py future-import-boilerplate -plugins/doc_fragments/_gcp.py metaclass-boilerplate -plugins/doc_fragments/alicloud.py future-import-boilerplate -plugins/doc_fragments/alicloud.py metaclass-boilerplate -plugins/doc_fragments/auth_basic.py future-import-boilerplate -plugins/doc_fragments/auth_basic.py metaclass-boilerplate -plugins/doc_fragments/digital_ocean.py future-import-boilerplate -plugins/doc_fragments/digital_ocean.py metaclass-boilerplate -plugins/doc_fragments/dimensiondata.py future-import-boilerplate -plugins/doc_fragments/dimensiondata.py metaclass-boilerplate -plugins/doc_fragments/dimensiondata_wait.py future-import-boilerplate -plugins/doc_fragments/dimensiondata_wait.py metaclass-boilerplate -plugins/doc_fragments/emc.py future-import-boilerplate -plugins/doc_fragments/emc.py metaclass-boilerplate -plugins/doc_fragments/hetzner.py future-import-boilerplate -plugins/doc_fragments/hetzner.py metaclass-boilerplate -plugins/doc_fragments/hpe3par.py future-import-boilerplate -plugins/doc_fragments/hpe3par.py metaclass-boilerplate -plugins/doc_fragments/hwc.py future-import-boilerplate -plugins/doc_fragments/hwc.py metaclass-boilerplate -plugins/doc_fragments/infinibox.py future-import-boilerplate -plugins/doc_fragments/infinibox.py metaclass-boilerplate -plugins/doc_fragments/influxdb.py future-import-boilerplate -plugins/doc_fragments/influxdb.py metaclass-boilerplate -plugins/doc_fragments/ipa.py future-import-boilerplate -plugins/doc_fragments/ipa.py metaclass-boilerplate -plugins/doc_fragments/keycloak.py future-import-boilerplate -plugins/doc_fragments/keycloak.py metaclass-boilerplate -plugins/doc_fragments/kubevirt_common_options.py future-import-boilerplate -plugins/doc_fragments/kubevirt_common_options.py metaclass-boilerplate -plugins/doc_fragments/kubevirt_vm_options.py future-import-boilerplate -plugins/doc_fragments/kubevirt_vm_options.py metaclass-boilerplate -plugins/doc_fragments/ldap.py future-import-boilerplate -plugins/doc_fragments/ldap.py metaclass-boilerplate -plugins/doc_fragments/lxca_common.py future-import-boilerplate -plugins/doc_fragments/lxca_common.py metaclass-boilerplate -plugins/doc_fragments/manageiq.py future-import-boilerplate -plugins/doc_fragments/manageiq.py metaclass-boilerplate -plugins/doc_fragments/mysql.py future-import-boilerplate -plugins/doc_fragments/mysql.py metaclass-boilerplate -plugins/doc_fragments/nios.py future-import-boilerplate -plugins/doc_fragments/nios.py metaclass-boilerplate -plugins/doc_fragments/oneview.py future-import-boilerplate -plugins/doc_fragments/oneview.py metaclass-boilerplate -plugins/doc_fragments/online.py future-import-boilerplate -plugins/doc_fragments/online.py metaclass-boilerplate -plugins/doc_fragments/opennebula.py future-import-boilerplate -plugins/doc_fragments/opennebula.py metaclass-boilerplate -plugins/doc_fragments/openswitch.py future-import-boilerplate -plugins/doc_fragments/openswitch.py metaclass-boilerplate -plugins/doc_fragments/oracle.py future-import-boilerplate -plugins/doc_fragments/oracle.py metaclass-boilerplate -plugins/doc_fragments/oracle_creatable_resource.py future-import-boilerplate -plugins/doc_fragments/oracle_creatable_resource.py metaclass-boilerplate -plugins/doc_fragments/oracle_display_name_option.py future-import-boilerplate -plugins/doc_fragments/oracle_display_name_option.py metaclass-boilerplate -plugins/doc_fragments/oracle_name_option.py future-import-boilerplate -plugins/doc_fragments/oracle_name_option.py metaclass-boilerplate -plugins/doc_fragments/oracle_tags.py future-import-boilerplate -plugins/doc_fragments/oracle_tags.py metaclass-boilerplate -plugins/doc_fragments/oracle_wait_options.py future-import-boilerplate -plugins/doc_fragments/oracle_wait_options.py metaclass-boilerplate -plugins/doc_fragments/postgres.py future-import-boilerplate -plugins/doc_fragments/postgres.py metaclass-boilerplate -plugins/doc_fragments/proxysql.py future-import-boilerplate -plugins/doc_fragments/proxysql.py metaclass-boilerplate -plugins/doc_fragments/purestorage.py future-import-boilerplate -plugins/doc_fragments/purestorage.py metaclass-boilerplate -plugins/doc_fragments/rackspace.py future-import-boilerplate -plugins/doc_fragments/rackspace.py metaclass-boilerplate -plugins/doc_fragments/scaleway.py future-import-boilerplate -plugins/doc_fragments/scaleway.py metaclass-boilerplate -plugins/doc_fragments/utm.py future-import-boilerplate -plugins/doc_fragments/utm.py metaclass-boilerplate -plugins/doc_fragments/vexata.py future-import-boilerplate -plugins/doc_fragments/vexata.py metaclass-boilerplate -plugins/doc_fragments/xenserver.py future-import-boilerplate -plugins/doc_fragments/xenserver.py metaclass-boilerplate -plugins/module_utils/alicloud_ecs.py future-import-boilerplate -plugins/module_utils/alicloud_ecs.py metaclass-boilerplate -plugins/module_utils/cloud.py future-import-boilerplate -plugins/module_utils/cloud.py metaclass-boilerplate -plugins/module_utils/compat/ipaddress.py future-import-boilerplate -plugins/module_utils/compat/ipaddress.py metaclass-boilerplate plugins/module_utils/compat/ipaddress.py no-assert plugins/module_utils/compat/ipaddress.py no-unicode-literals -plugins/module_utils/database.py future-import-boilerplate -plugins/module_utils/database.py metaclass-boilerplate -plugins/module_utils/digital_ocean.py future-import-boilerplate -plugins/module_utils/digital_ocean.py metaclass-boilerplate -plugins/module_utils/dimensiondata.py future-import-boilerplate -plugins/module_utils/dimensiondata.py metaclass-boilerplate -plugins/module_utils/firewalld.py future-import-boilerplate -plugins/module_utils/firewalld.py metaclass-boilerplate -plugins/module_utils/gcdns.py future-import-boilerplate -plugins/module_utils/gcdns.py metaclass-boilerplate -plugins/module_utils/gce.py future-import-boilerplate -plugins/module_utils/gce.py metaclass-boilerplate -plugins/module_utils/gcp.py future-import-boilerplate -plugins/module_utils/gcp.py metaclass-boilerplate -plugins/module_utils/gitlab.py future-import-boilerplate -plugins/module_utils/gitlab.py metaclass-boilerplate -plugins/module_utils/hwc_utils.py future-import-boilerplate -plugins/module_utils/hwc_utils.py metaclass-boilerplate -plugins/module_utils/infinibox.py future-import-boilerplate -plugins/module_utils/infinibox.py metaclass-boilerplate -plugins/module_utils/ipa.py future-import-boilerplate -plugins/module_utils/ipa.py metaclass-boilerplate -plugins/module_utils/known_hosts.py future-import-boilerplate -plugins/module_utils/known_hosts.py metaclass-boilerplate -plugins/module_utils/kubevirt.py future-import-boilerplate -plugins/module_utils/kubevirt.py metaclass-boilerplate -plugins/module_utils/linode.py future-import-boilerplate -plugins/module_utils/linode.py metaclass-boilerplate -plugins/module_utils/lxd.py future-import-boilerplate -plugins/module_utils/lxd.py metaclass-boilerplate -plugins/module_utils/manageiq.py future-import-boilerplate -plugins/module_utils/manageiq.py metaclass-boilerplate -plugins/module_utils/memset.py future-import-boilerplate -plugins/module_utils/memset.py metaclass-boilerplate -plugins/module_utils/mysql.py future-import-boilerplate -plugins/module_utils/mysql.py metaclass-boilerplate -plugins/module_utils/net_tools/nios/api.py future-import-boilerplate -plugins/module_utils/net_tools/nios/api.py metaclass-boilerplate -plugins/module_utils/oneandone.py future-import-boilerplate -plugins/module_utils/oneandone.py metaclass-boilerplate -plugins/module_utils/oneview.py metaclass-boilerplate -plugins/module_utils/opennebula.py future-import-boilerplate -plugins/module_utils/opennebula.py metaclass-boilerplate -plugins/module_utils/oracle/oci_utils.py future-import-boilerplate -plugins/module_utils/oracle/oci_utils.py metaclass-boilerplate -plugins/module_utils/postgres.py future-import-boilerplate -plugins/module_utils/postgres.py metaclass-boilerplate -plugins/module_utils/pure.py future-import-boilerplate -plugins/module_utils/pure.py metaclass-boilerplate -plugins/module_utils/rax.py future-import-boilerplate -plugins/module_utils/rax.py metaclass-boilerplate -plugins/module_utils/redhat.py future-import-boilerplate -plugins/module_utils/redhat.py metaclass-boilerplate -plugins/module_utils/remote_management/dellemc/dellemc_idrac.py future-import-boilerplate -plugins/module_utils/remote_management/lxca/common.py future-import-boilerplate -plugins/module_utils/remote_management/lxca/common.py metaclass-boilerplate -plugins/module_utils/scaleway.py future-import-boilerplate -plugins/module_utils/scaleway.py metaclass-boilerplate -plugins/module_utils/storage/hpe3par/hpe3par.py future-import-boilerplate -plugins/module_utils/storage/hpe3par/hpe3par.py metaclass-boilerplate -plugins/module_utils/univention_umc.py future-import-boilerplate -plugins/module_utils/univention_umc.py metaclass-boilerplate -plugins/module_utils/vexata.py future-import-boilerplate -plugins/module_utils/vexata.py metaclass-boilerplate plugins/modules/cloud/atomic/atomic_container.py validate-modules:doc-missing-type plugins/modules/cloud/atomic/atomic_container.py validate-modules:doc-required-mismatch plugins/modules/cloud/atomic/atomic_container.py validate-modules:no-default-for-required-parameter @@ -1611,256 +1463,7 @@ plugins/modules/web_infrastructure/supervisorctl.py validate-modules:parameter-t plugins/modules/web_infrastructure/taiga_issue.py validate-modules:doc-missing-type plugins/modules/web_infrastructure/taiga_issue.py validate-modules:parameter-list-no-elements plugins/modules/web_infrastructure/taiga_issue.py validate-modules:parameter-type-not-in-doc -scripts/inventory/abiquo.py future-import-boilerplate -scripts/inventory/abiquo.py metaclass-boilerplate -scripts/inventory/apache-libcloud.py future-import-boilerplate -scripts/inventory/apache-libcloud.py metaclass-boilerplate -scripts/inventory/apstra_aos.py future-import-boilerplate -scripts/inventory/apstra_aos.py metaclass-boilerplate -scripts/inventory/azure_rm.py future-import-boilerplate -scripts/inventory/azure_rm.py metaclass-boilerplate -scripts/inventory/brook.py future-import-boilerplate -scripts/inventory/brook.py metaclass-boilerplate -scripts/inventory/cloudforms.py future-import-boilerplate -scripts/inventory/cloudforms.py metaclass-boilerplate -scripts/inventory/cobbler.py future-import-boilerplate -scripts/inventory/cobbler.py metaclass-boilerplate -scripts/inventory/collins.py future-import-boilerplate -scripts/inventory/collins.py metaclass-boilerplate -scripts/inventory/consul_io.py future-import-boilerplate -scripts/inventory/consul_io.py metaclass-boilerplate -scripts/inventory/digital_ocean.py future-import-boilerplate -scripts/inventory/digital_ocean.py metaclass-boilerplate -scripts/inventory/fleet.py future-import-boilerplate -scripts/inventory/fleet.py metaclass-boilerplate -scripts/inventory/foreman.py future-import-boilerplate -scripts/inventory/foreman.py metaclass-boilerplate -scripts/inventory/freeipa.py future-import-boilerplate -scripts/inventory/freeipa.py metaclass-boilerplate -scripts/inventory/gce.py future-import-boilerplate -scripts/inventory/gce.py metaclass-boilerplate scripts/inventory/gce.py pylint:blacklisted-name -scripts/inventory/infoblox.py future-import-boilerplate -scripts/inventory/infoblox.py metaclass-boilerplate -scripts/inventory/jail.py future-import-boilerplate -scripts/inventory/jail.py metaclass-boilerplate -scripts/inventory/landscape.py future-import-boilerplate -scripts/inventory/landscape.py metaclass-boilerplate -scripts/inventory/linode.py future-import-boilerplate -scripts/inventory/linode.py metaclass-boilerplate -scripts/inventory/lxc_inventory.py future-import-boilerplate -scripts/inventory/lxc_inventory.py metaclass-boilerplate -scripts/inventory/lxd.py future-import-boilerplate -scripts/inventory/lxd.py metaclass-boilerplate -scripts/inventory/mdt_dynamic_inventory.py future-import-boilerplate -scripts/inventory/mdt_dynamic_inventory.py metaclass-boilerplate -scripts/inventory/nagios_livestatus.py future-import-boilerplate -scripts/inventory/nagios_livestatus.py metaclass-boilerplate -scripts/inventory/nagios_ndo.py future-import-boilerplate -scripts/inventory/nagios_ndo.py metaclass-boilerplate -scripts/inventory/nsot.py future-import-boilerplate -scripts/inventory/nsot.py metaclass-boilerplate -scripts/inventory/openshift.py future-import-boilerplate -scripts/inventory/openshift.py metaclass-boilerplate -scripts/inventory/openvz.py future-import-boilerplate -scripts/inventory/openvz.py metaclass-boilerplate -scripts/inventory/ovirt.py future-import-boilerplate -scripts/inventory/ovirt.py metaclass-boilerplate -scripts/inventory/ovirt4.py future-import-boilerplate -scripts/inventory/ovirt4.py metaclass-boilerplate -scripts/inventory/packet_net.py future-import-boilerplate -scripts/inventory/packet_net.py metaclass-boilerplate -scripts/inventory/proxmox.py future-import-boilerplate -scripts/inventory/proxmox.py metaclass-boilerplate -scripts/inventory/rackhd.py future-import-boilerplate -scripts/inventory/rackhd.py metaclass-boilerplate -scripts/inventory/rax.py future-import-boilerplate -scripts/inventory/rax.py metaclass-boilerplate -scripts/inventory/rudder.py future-import-boilerplate -scripts/inventory/rudder.py metaclass-boilerplate -scripts/inventory/scaleway.py future-import-boilerplate -scripts/inventory/scaleway.py metaclass-boilerplate -scripts/inventory/serf.py future-import-boilerplate -scripts/inventory/serf.py metaclass-boilerplate -scripts/inventory/softlayer.py future-import-boilerplate -scripts/inventory/softlayer.py metaclass-boilerplate -scripts/inventory/spacewalk.py future-import-boilerplate -scripts/inventory/spacewalk.py metaclass-boilerplate -scripts/inventory/ssh_config.py future-import-boilerplate -scripts/inventory/ssh_config.py metaclass-boilerplate -scripts/inventory/stacki.py future-import-boilerplate -scripts/inventory/stacki.py metaclass-boilerplate -scripts/inventory/vagrant.py future-import-boilerplate -scripts/inventory/vagrant.py metaclass-boilerplate -scripts/inventory/vbox.py future-import-boilerplate -scripts/inventory/vbox.py metaclass-boilerplate -scripts/inventory/zone.py future-import-boilerplate -scripts/inventory/zone.py metaclass-boilerplate -scripts/vault/azure_vault.py future-import-boilerplate -scripts/vault/azure_vault.py metaclass-boilerplate -scripts/vault/vault-keyring-client.py future-import-boilerplate -scripts/vault/vault-keyring-client.py metaclass-boilerplate -scripts/vault/vault-keyring.py future-import-boilerplate -scripts/vault/vault-keyring.py metaclass-boilerplate -tests/integration/targets/inventory_kubevirt/inventory_diff.py future-import-boilerplate -tests/integration/targets/inventory_kubevirt/inventory_diff.py metaclass-boilerplate -tests/integration/targets/inventory_kubevirt/server.py future-import-boilerplate -tests/integration/targets/inventory_kubevirt/server.py metaclass-boilerplate -tests/integration/targets/supervisorctl/files/sendProcessStdin.py future-import-boilerplate -tests/integration/targets/supervisorctl/files/sendProcessStdin.py metaclass-boilerplate -tests/unit/mock/path.py future-import-boilerplate -tests/unit/mock/path.py metaclass-boilerplate -tests/unit/mock/yaml_helper.py future-import-boilerplate -tests/unit/mock/yaml_helper.py metaclass-boilerplate -tests/unit/plugins/module_utils/cloud/test_backoff.py future-import-boilerplate -tests/unit/plugins/module_utils/cloud/test_backoff.py metaclass-boilerplate -tests/unit/plugins/module_utils/conftest.py future-import-boilerplate -tests/unit/plugins/module_utils/conftest.py metaclass-boilerplate -tests/unit/plugins/module_utils/gcp/test_auth.py future-import-boilerplate -tests/unit/plugins/module_utils/gcp/test_auth.py metaclass-boilerplate -tests/unit/plugins/module_utils/gcp/test_utils.py future-import-boilerplate -tests/unit/plugins/module_utils/gcp/test_utils.py metaclass-boilerplate -tests/unit/plugins/module_utils/hwc/test_dict_comparison.py future-import-boilerplate -tests/unit/plugins/module_utils/hwc/test_dict_comparison.py metaclass-boilerplate -tests/unit/plugins/module_utils/hwc/test_hwc_utils.py future-import-boilerplate -tests/unit/plugins/module_utils/hwc/test_hwc_utils.py metaclass-boilerplate -tests/unit/plugins/module_utils/postgresql/test_postgres.py future-import-boilerplate -tests/unit/plugins/module_utils/postgresql/test_postgres.py metaclass-boilerplate -tests/unit/plugins/module_utils/remote_management/dellemc/test_ome.py future-import-boilerplate -tests/unit/plugins/module_utils/remote_management/dellemc/test_ome.py metaclass-boilerplate -tests/unit/plugins/module_utils/test_database.py future-import-boilerplate -tests/unit/plugins/module_utils/test_database.py metaclass-boilerplate -tests/unit/plugins/module_utils/test_hetzner.py future-import-boilerplate -tests/unit/plugins/module_utils/test_hetzner.py metaclass-boilerplate -tests/unit/plugins/module_utils/test_kubevirt.py future-import-boilerplate -tests/unit/plugins/module_utils/test_kubevirt.py metaclass-boilerplate -tests/unit/plugins/module_utils/test_utm_utils.py future-import-boilerplate -tests/unit/plugins/module_utils/test_utm_utils.py metaclass-boilerplate -tests/unit/plugins/module_utils/xenserver/FakeAnsibleModule.py future-import-boilerplate -tests/unit/plugins/module_utils/xenserver/FakeAnsibleModule.py metaclass-boilerplate -tests/unit/plugins/module_utils/xenserver/FakeXenAPI.py future-import-boilerplate -tests/unit/plugins/module_utils/xenserver/FakeXenAPI.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/google/test_gce_tag.py future-import-boilerplate -tests/unit/plugins/modules/cloud/google/test_gce_tag.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/google/test_gcp_url_map.py future-import-boilerplate -tests/unit/plugins/modules/cloud/google/test_gcp_url_map.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_rs.py future-import-boilerplate -tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_rs.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_vm.py future-import-boilerplate -tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_vm.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/linode/conftest.py future-import-boilerplate -tests/unit/plugins/modules/cloud/linode/conftest.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/linode/test_linode.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/linode/test_linode_v4.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/misc/test_terraform.py future-import-boilerplate -tests/unit/plugins/modules/cloud/misc/test_terraform.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/xenserver/FakeAnsibleModule.py future-import-boilerplate -tests/unit/plugins/modules/cloud/xenserver/FakeAnsibleModule.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/xenserver/FakeXenAPI.py future-import-boilerplate -tests/unit/plugins/modules/cloud/xenserver/FakeXenAPI.py metaclass-boilerplate -tests/unit/plugins/modules/conftest.py future-import-boilerplate -tests/unit/plugins/modules/conftest.py metaclass-boilerplate -tests/unit/plugins/modules/monitoring/test_circonus_annotation.py future-import-boilerplate -tests/unit/plugins/modules/monitoring/test_circonus_annotation.py metaclass-boilerplate -tests/unit/plugins/modules/monitoring/test_icinga2_feature.py future-import-boilerplate -tests/unit/plugins/modules/monitoring/test_icinga2_feature.py metaclass-boilerplate -tests/unit/plugins/modules/monitoring/test_pagerduty.py future-import-boilerplate -tests/unit/plugins/modules/monitoring/test_pagerduty.py metaclass-boilerplate -tests/unit/plugins/modules/monitoring/test_pagerduty_alert.py future-import-boilerplate -tests/unit/plugins/modules/monitoring/test_pagerduty_alert.py metaclass-boilerplate -tests/unit/plugins/modules/net_tools/test_nmcli.py future-import-boilerplate -tests/unit/plugins/modules/net_tools/test_nmcli.py metaclass-boilerplate -tests/unit/plugins/modules/notification/test_slack.py future-import-boilerplate -tests/unit/plugins/modules/notification/test_slack.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/language/test_gem.py future-import-boilerplate -tests/unit/plugins/modules/packaging/language/test_gem.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/os/conftest.py future-import-boilerplate -tests/unit/plugins/modules/packaging/os/conftest.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/os/test_apk.py future-import-boilerplate -tests/unit/plugins/modules/packaging/os/test_apk.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/os/test_rhn_channel.py future-import-boilerplate -tests/unit/plugins/modules/packaging/os/test_rhn_channel.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/os/test_rhn_register.py future-import-boilerplate -tests/unit/plugins/modules/packaging/os/test_rhn_register.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/dellemc/test_ome_device_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/dellemc/test_ome_device_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/lxca/test_lxca_cmms.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/lxca/test_lxca_cmms.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/lxca/test_lxca_nodes.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/lxca/test_lxca_nodes.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/conftest.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/conftest.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/hpe_test_utils.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/hpe_test_utils.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_datacenter_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_datacenter_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_enclosure_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_enclosure_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager_info.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_access_key.py future-import-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_access_key.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_key_pair.py future-import-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_key_pair.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_known_host.py future-import-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_known_host.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_variable.py future-import-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_variable.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/gitlab.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/gitlab.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_deploy_key.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_deploy_key.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_group.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_group.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_hook.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_hook.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_project.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_project.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_runner.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_runner.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_user.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_user.py metaclass-boilerplate -tests/unit/plugins/modules/storage/hpe3par/test_ss_3par_cpg.py future-import-boilerplate -tests/unit/plugins/modules/storage/hpe3par/test_ss_3par_cpg.py metaclass-boilerplate -tests/unit/plugins/modules/system/interfaces_file/interfaces_file/test_interfaces_file.py future-import-boilerplate -tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py future-import-boilerplate -tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py metaclass-boilerplate tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py pylint:blacklisted-name -tests/unit/plugins/modules/system/test_java_keystore.py future-import-boilerplate -tests/unit/plugins/modules/system/test_java_keystore.py metaclass-boilerplate -tests/unit/plugins/modules/system/test_pamd.py metaclass-boilerplate -tests/unit/plugins/modules/system/test_parted.py future-import-boilerplate -tests/unit/plugins/modules/system/test_ufw.py future-import-boilerplate -tests/unit/plugins/modules/system/test_ufw.py metaclass-boilerplate -tests/unit/plugins/modules/utils.py future-import-boilerplate -tests/unit/plugins/modules/utils.py metaclass-boilerplate -tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py future-import-boilerplate -tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py metaclass-boilerplate -tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py future-import-boilerplate -tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py metaclass-boilerplate tests/utils/shippable/check_matrix.py replace-urlopen tests/utils/shippable/timing.py shebang diff --git a/tests/sanity/ignore-2.11.txt b/tests/sanity/ignore-2.11.txt index 6b35929c40..227a2c9cd9 100644 --- a/tests/sanity/ignore-2.11.txt +++ b/tests/sanity/ignore-2.11.txt @@ -1,155 +1,7 @@ plugins/callback/hipchat.py pylint:blacklisted-name plugins/connection/lxc.py pylint:blacklisted-name -plugins/doc_fragments/_gcp.py future-import-boilerplate -plugins/doc_fragments/_gcp.py metaclass-boilerplate -plugins/doc_fragments/alicloud.py future-import-boilerplate -plugins/doc_fragments/alicloud.py metaclass-boilerplate -plugins/doc_fragments/auth_basic.py future-import-boilerplate -plugins/doc_fragments/auth_basic.py metaclass-boilerplate -plugins/doc_fragments/digital_ocean.py future-import-boilerplate -plugins/doc_fragments/digital_ocean.py metaclass-boilerplate -plugins/doc_fragments/dimensiondata.py future-import-boilerplate -plugins/doc_fragments/dimensiondata.py metaclass-boilerplate -plugins/doc_fragments/dimensiondata_wait.py future-import-boilerplate -plugins/doc_fragments/dimensiondata_wait.py metaclass-boilerplate -plugins/doc_fragments/emc.py future-import-boilerplate -plugins/doc_fragments/emc.py metaclass-boilerplate -plugins/doc_fragments/hetzner.py future-import-boilerplate -plugins/doc_fragments/hetzner.py metaclass-boilerplate -plugins/doc_fragments/hpe3par.py future-import-boilerplate -plugins/doc_fragments/hpe3par.py metaclass-boilerplate -plugins/doc_fragments/hwc.py future-import-boilerplate -plugins/doc_fragments/hwc.py metaclass-boilerplate -plugins/doc_fragments/infinibox.py future-import-boilerplate -plugins/doc_fragments/infinibox.py metaclass-boilerplate -plugins/doc_fragments/influxdb.py future-import-boilerplate -plugins/doc_fragments/influxdb.py metaclass-boilerplate -plugins/doc_fragments/ipa.py future-import-boilerplate -plugins/doc_fragments/ipa.py metaclass-boilerplate -plugins/doc_fragments/keycloak.py future-import-boilerplate -plugins/doc_fragments/keycloak.py metaclass-boilerplate -plugins/doc_fragments/kubevirt_common_options.py future-import-boilerplate -plugins/doc_fragments/kubevirt_common_options.py metaclass-boilerplate -plugins/doc_fragments/kubevirt_vm_options.py future-import-boilerplate -plugins/doc_fragments/kubevirt_vm_options.py metaclass-boilerplate -plugins/doc_fragments/ldap.py future-import-boilerplate -plugins/doc_fragments/ldap.py metaclass-boilerplate -plugins/doc_fragments/lxca_common.py future-import-boilerplate -plugins/doc_fragments/lxca_common.py metaclass-boilerplate -plugins/doc_fragments/manageiq.py future-import-boilerplate -plugins/doc_fragments/manageiq.py metaclass-boilerplate -plugins/doc_fragments/mysql.py future-import-boilerplate -plugins/doc_fragments/mysql.py metaclass-boilerplate -plugins/doc_fragments/nios.py future-import-boilerplate -plugins/doc_fragments/nios.py metaclass-boilerplate -plugins/doc_fragments/oneview.py future-import-boilerplate -plugins/doc_fragments/oneview.py metaclass-boilerplate -plugins/doc_fragments/online.py future-import-boilerplate -plugins/doc_fragments/online.py metaclass-boilerplate -plugins/doc_fragments/opennebula.py future-import-boilerplate -plugins/doc_fragments/opennebula.py metaclass-boilerplate -plugins/doc_fragments/openswitch.py future-import-boilerplate -plugins/doc_fragments/openswitch.py metaclass-boilerplate -plugins/doc_fragments/oracle.py future-import-boilerplate -plugins/doc_fragments/oracle.py metaclass-boilerplate -plugins/doc_fragments/oracle_creatable_resource.py future-import-boilerplate -plugins/doc_fragments/oracle_creatable_resource.py metaclass-boilerplate -plugins/doc_fragments/oracle_display_name_option.py future-import-boilerplate -plugins/doc_fragments/oracle_display_name_option.py metaclass-boilerplate -plugins/doc_fragments/oracle_name_option.py future-import-boilerplate -plugins/doc_fragments/oracle_name_option.py metaclass-boilerplate -plugins/doc_fragments/oracle_tags.py future-import-boilerplate -plugins/doc_fragments/oracle_tags.py metaclass-boilerplate -plugins/doc_fragments/oracle_wait_options.py future-import-boilerplate -plugins/doc_fragments/oracle_wait_options.py metaclass-boilerplate -plugins/doc_fragments/postgres.py future-import-boilerplate -plugins/doc_fragments/postgres.py metaclass-boilerplate -plugins/doc_fragments/proxysql.py future-import-boilerplate -plugins/doc_fragments/proxysql.py metaclass-boilerplate -plugins/doc_fragments/purestorage.py future-import-boilerplate -plugins/doc_fragments/purestorage.py metaclass-boilerplate -plugins/doc_fragments/rackspace.py future-import-boilerplate -plugins/doc_fragments/rackspace.py metaclass-boilerplate -plugins/doc_fragments/scaleway.py future-import-boilerplate -plugins/doc_fragments/scaleway.py metaclass-boilerplate -plugins/doc_fragments/utm.py future-import-boilerplate -plugins/doc_fragments/utm.py metaclass-boilerplate -plugins/doc_fragments/vexata.py future-import-boilerplate -plugins/doc_fragments/vexata.py metaclass-boilerplate -plugins/doc_fragments/xenserver.py future-import-boilerplate -plugins/doc_fragments/xenserver.py metaclass-boilerplate -plugins/module_utils/alicloud_ecs.py future-import-boilerplate -plugins/module_utils/alicloud_ecs.py metaclass-boilerplate -plugins/module_utils/cloud.py future-import-boilerplate -plugins/module_utils/cloud.py metaclass-boilerplate -plugins/module_utils/compat/ipaddress.py future-import-boilerplate -plugins/module_utils/compat/ipaddress.py metaclass-boilerplate plugins/module_utils/compat/ipaddress.py no-assert plugins/module_utils/compat/ipaddress.py no-unicode-literals -plugins/module_utils/database.py future-import-boilerplate -plugins/module_utils/database.py metaclass-boilerplate -plugins/module_utils/digital_ocean.py future-import-boilerplate -plugins/module_utils/digital_ocean.py metaclass-boilerplate -plugins/module_utils/dimensiondata.py future-import-boilerplate -plugins/module_utils/dimensiondata.py metaclass-boilerplate -plugins/module_utils/firewalld.py future-import-boilerplate -plugins/module_utils/firewalld.py metaclass-boilerplate -plugins/module_utils/gcdns.py future-import-boilerplate -plugins/module_utils/gcdns.py metaclass-boilerplate -plugins/module_utils/gce.py future-import-boilerplate -plugins/module_utils/gce.py metaclass-boilerplate -plugins/module_utils/gcp.py future-import-boilerplate -plugins/module_utils/gcp.py metaclass-boilerplate -plugins/module_utils/gitlab.py future-import-boilerplate -plugins/module_utils/gitlab.py metaclass-boilerplate -plugins/module_utils/hwc_utils.py future-import-boilerplate -plugins/module_utils/hwc_utils.py metaclass-boilerplate -plugins/module_utils/infinibox.py future-import-boilerplate -plugins/module_utils/infinibox.py metaclass-boilerplate -plugins/module_utils/ipa.py future-import-boilerplate -plugins/module_utils/ipa.py metaclass-boilerplate -plugins/module_utils/known_hosts.py future-import-boilerplate -plugins/module_utils/known_hosts.py metaclass-boilerplate -plugins/module_utils/kubevirt.py future-import-boilerplate -plugins/module_utils/kubevirt.py metaclass-boilerplate -plugins/module_utils/linode.py future-import-boilerplate -plugins/module_utils/linode.py metaclass-boilerplate -plugins/module_utils/lxd.py future-import-boilerplate -plugins/module_utils/lxd.py metaclass-boilerplate -plugins/module_utils/manageiq.py future-import-boilerplate -plugins/module_utils/manageiq.py metaclass-boilerplate -plugins/module_utils/memset.py future-import-boilerplate -plugins/module_utils/memset.py metaclass-boilerplate -plugins/module_utils/mysql.py future-import-boilerplate -plugins/module_utils/mysql.py metaclass-boilerplate -plugins/module_utils/net_tools/nios/api.py future-import-boilerplate -plugins/module_utils/net_tools/nios/api.py metaclass-boilerplate -plugins/module_utils/oneandone.py future-import-boilerplate -plugins/module_utils/oneandone.py metaclass-boilerplate -plugins/module_utils/oneview.py metaclass-boilerplate -plugins/module_utils/opennebula.py future-import-boilerplate -plugins/module_utils/opennebula.py metaclass-boilerplate -plugins/module_utils/oracle/oci_utils.py future-import-boilerplate -plugins/module_utils/oracle/oci_utils.py metaclass-boilerplate -plugins/module_utils/postgres.py future-import-boilerplate -plugins/module_utils/postgres.py metaclass-boilerplate -plugins/module_utils/pure.py future-import-boilerplate -plugins/module_utils/pure.py metaclass-boilerplate -plugins/module_utils/rax.py future-import-boilerplate -plugins/module_utils/rax.py metaclass-boilerplate -plugins/module_utils/redhat.py future-import-boilerplate -plugins/module_utils/redhat.py metaclass-boilerplate -plugins/module_utils/remote_management/dellemc/dellemc_idrac.py future-import-boilerplate -plugins/module_utils/remote_management/lxca/common.py future-import-boilerplate -plugins/module_utils/remote_management/lxca/common.py metaclass-boilerplate -plugins/module_utils/scaleway.py future-import-boilerplate -plugins/module_utils/scaleway.py metaclass-boilerplate -plugins/module_utils/storage/hpe3par/hpe3par.py future-import-boilerplate -plugins/module_utils/storage/hpe3par/hpe3par.py metaclass-boilerplate -plugins/module_utils/univention_umc.py future-import-boilerplate -plugins/module_utils/univention_umc.py metaclass-boilerplate -plugins/module_utils/vexata.py future-import-boilerplate -plugins/module_utils/vexata.py metaclass-boilerplate plugins/modules/cloud/atomic/atomic_container.py validate-modules:doc-missing-type plugins/modules/cloud/atomic/atomic_container.py validate-modules:doc-required-mismatch plugins/modules/cloud/atomic/atomic_container.py validate-modules:no-default-for-required-parameter @@ -1611,256 +1463,7 @@ plugins/modules/web_infrastructure/supervisorctl.py validate-modules:parameter-t plugins/modules/web_infrastructure/taiga_issue.py validate-modules:doc-missing-type plugins/modules/web_infrastructure/taiga_issue.py validate-modules:parameter-list-no-elements plugins/modules/web_infrastructure/taiga_issue.py validate-modules:parameter-type-not-in-doc -scripts/inventory/abiquo.py future-import-boilerplate -scripts/inventory/abiquo.py metaclass-boilerplate -scripts/inventory/apache-libcloud.py future-import-boilerplate -scripts/inventory/apache-libcloud.py metaclass-boilerplate -scripts/inventory/apstra_aos.py future-import-boilerplate -scripts/inventory/apstra_aos.py metaclass-boilerplate -scripts/inventory/azure_rm.py future-import-boilerplate -scripts/inventory/azure_rm.py metaclass-boilerplate -scripts/inventory/brook.py future-import-boilerplate -scripts/inventory/brook.py metaclass-boilerplate -scripts/inventory/cloudforms.py future-import-boilerplate -scripts/inventory/cloudforms.py metaclass-boilerplate -scripts/inventory/cobbler.py future-import-boilerplate -scripts/inventory/cobbler.py metaclass-boilerplate -scripts/inventory/collins.py future-import-boilerplate -scripts/inventory/collins.py metaclass-boilerplate -scripts/inventory/consul_io.py future-import-boilerplate -scripts/inventory/consul_io.py metaclass-boilerplate -scripts/inventory/digital_ocean.py future-import-boilerplate -scripts/inventory/digital_ocean.py metaclass-boilerplate -scripts/inventory/fleet.py future-import-boilerplate -scripts/inventory/fleet.py metaclass-boilerplate -scripts/inventory/foreman.py future-import-boilerplate -scripts/inventory/foreman.py metaclass-boilerplate -scripts/inventory/freeipa.py future-import-boilerplate -scripts/inventory/freeipa.py metaclass-boilerplate -scripts/inventory/gce.py future-import-boilerplate -scripts/inventory/gce.py metaclass-boilerplate scripts/inventory/gce.py pylint:blacklisted-name -scripts/inventory/infoblox.py future-import-boilerplate -scripts/inventory/infoblox.py metaclass-boilerplate -scripts/inventory/jail.py future-import-boilerplate -scripts/inventory/jail.py metaclass-boilerplate -scripts/inventory/landscape.py future-import-boilerplate -scripts/inventory/landscape.py metaclass-boilerplate -scripts/inventory/linode.py future-import-boilerplate -scripts/inventory/linode.py metaclass-boilerplate -scripts/inventory/lxc_inventory.py future-import-boilerplate -scripts/inventory/lxc_inventory.py metaclass-boilerplate -scripts/inventory/lxd.py future-import-boilerplate -scripts/inventory/lxd.py metaclass-boilerplate -scripts/inventory/mdt_dynamic_inventory.py future-import-boilerplate -scripts/inventory/mdt_dynamic_inventory.py metaclass-boilerplate -scripts/inventory/nagios_livestatus.py future-import-boilerplate -scripts/inventory/nagios_livestatus.py metaclass-boilerplate -scripts/inventory/nagios_ndo.py future-import-boilerplate -scripts/inventory/nagios_ndo.py metaclass-boilerplate -scripts/inventory/nsot.py future-import-boilerplate -scripts/inventory/nsot.py metaclass-boilerplate -scripts/inventory/openshift.py future-import-boilerplate -scripts/inventory/openshift.py metaclass-boilerplate -scripts/inventory/openvz.py future-import-boilerplate -scripts/inventory/openvz.py metaclass-boilerplate -scripts/inventory/ovirt.py future-import-boilerplate -scripts/inventory/ovirt.py metaclass-boilerplate -scripts/inventory/ovirt4.py future-import-boilerplate -scripts/inventory/ovirt4.py metaclass-boilerplate -scripts/inventory/packet_net.py future-import-boilerplate -scripts/inventory/packet_net.py metaclass-boilerplate -scripts/inventory/proxmox.py future-import-boilerplate -scripts/inventory/proxmox.py metaclass-boilerplate -scripts/inventory/rackhd.py future-import-boilerplate -scripts/inventory/rackhd.py metaclass-boilerplate -scripts/inventory/rax.py future-import-boilerplate -scripts/inventory/rax.py metaclass-boilerplate -scripts/inventory/rudder.py future-import-boilerplate -scripts/inventory/rudder.py metaclass-boilerplate -scripts/inventory/scaleway.py future-import-boilerplate -scripts/inventory/scaleway.py metaclass-boilerplate -scripts/inventory/serf.py future-import-boilerplate -scripts/inventory/serf.py metaclass-boilerplate -scripts/inventory/softlayer.py future-import-boilerplate -scripts/inventory/softlayer.py metaclass-boilerplate -scripts/inventory/spacewalk.py future-import-boilerplate -scripts/inventory/spacewalk.py metaclass-boilerplate -scripts/inventory/ssh_config.py future-import-boilerplate -scripts/inventory/ssh_config.py metaclass-boilerplate -scripts/inventory/stacki.py future-import-boilerplate -scripts/inventory/stacki.py metaclass-boilerplate -scripts/inventory/vagrant.py future-import-boilerplate -scripts/inventory/vagrant.py metaclass-boilerplate -scripts/inventory/vbox.py future-import-boilerplate -scripts/inventory/vbox.py metaclass-boilerplate -scripts/inventory/zone.py future-import-boilerplate -scripts/inventory/zone.py metaclass-boilerplate -scripts/vault/azure_vault.py future-import-boilerplate -scripts/vault/azure_vault.py metaclass-boilerplate -scripts/vault/vault-keyring-client.py future-import-boilerplate -scripts/vault/vault-keyring-client.py metaclass-boilerplate -scripts/vault/vault-keyring.py future-import-boilerplate -scripts/vault/vault-keyring.py metaclass-boilerplate -tests/integration/targets/inventory_kubevirt/inventory_diff.py future-import-boilerplate -tests/integration/targets/inventory_kubevirt/inventory_diff.py metaclass-boilerplate -tests/integration/targets/inventory_kubevirt/server.py future-import-boilerplate -tests/integration/targets/inventory_kubevirt/server.py metaclass-boilerplate -tests/integration/targets/supervisorctl/files/sendProcessStdin.py future-import-boilerplate -tests/integration/targets/supervisorctl/files/sendProcessStdin.py metaclass-boilerplate -tests/unit/mock/path.py future-import-boilerplate -tests/unit/mock/path.py metaclass-boilerplate -tests/unit/mock/yaml_helper.py future-import-boilerplate -tests/unit/mock/yaml_helper.py metaclass-boilerplate -tests/unit/plugins/module_utils/cloud/test_backoff.py future-import-boilerplate -tests/unit/plugins/module_utils/cloud/test_backoff.py metaclass-boilerplate -tests/unit/plugins/module_utils/conftest.py future-import-boilerplate -tests/unit/plugins/module_utils/conftest.py metaclass-boilerplate -tests/unit/plugins/module_utils/gcp/test_auth.py future-import-boilerplate -tests/unit/plugins/module_utils/gcp/test_auth.py metaclass-boilerplate -tests/unit/plugins/module_utils/gcp/test_utils.py future-import-boilerplate -tests/unit/plugins/module_utils/gcp/test_utils.py metaclass-boilerplate -tests/unit/plugins/module_utils/hwc/test_dict_comparison.py future-import-boilerplate -tests/unit/plugins/module_utils/hwc/test_dict_comparison.py metaclass-boilerplate -tests/unit/plugins/module_utils/hwc/test_hwc_utils.py future-import-boilerplate -tests/unit/plugins/module_utils/hwc/test_hwc_utils.py metaclass-boilerplate -tests/unit/plugins/module_utils/postgresql/test_postgres.py future-import-boilerplate -tests/unit/plugins/module_utils/postgresql/test_postgres.py metaclass-boilerplate -tests/unit/plugins/module_utils/remote_management/dellemc/test_ome.py future-import-boilerplate -tests/unit/plugins/module_utils/remote_management/dellemc/test_ome.py metaclass-boilerplate -tests/unit/plugins/module_utils/test_database.py future-import-boilerplate -tests/unit/plugins/module_utils/test_database.py metaclass-boilerplate -tests/unit/plugins/module_utils/test_hetzner.py future-import-boilerplate -tests/unit/plugins/module_utils/test_hetzner.py metaclass-boilerplate -tests/unit/plugins/module_utils/test_kubevirt.py future-import-boilerplate -tests/unit/plugins/module_utils/test_kubevirt.py metaclass-boilerplate -tests/unit/plugins/module_utils/test_utm_utils.py future-import-boilerplate -tests/unit/plugins/module_utils/test_utm_utils.py metaclass-boilerplate -tests/unit/plugins/module_utils/xenserver/FakeAnsibleModule.py future-import-boilerplate -tests/unit/plugins/module_utils/xenserver/FakeAnsibleModule.py metaclass-boilerplate -tests/unit/plugins/module_utils/xenserver/FakeXenAPI.py future-import-boilerplate -tests/unit/plugins/module_utils/xenserver/FakeXenAPI.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/google/test_gce_tag.py future-import-boilerplate -tests/unit/plugins/modules/cloud/google/test_gce_tag.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/google/test_gcp_url_map.py future-import-boilerplate -tests/unit/plugins/modules/cloud/google/test_gcp_url_map.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_rs.py future-import-boilerplate -tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_rs.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_vm.py future-import-boilerplate -tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_vm.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/linode/conftest.py future-import-boilerplate -tests/unit/plugins/modules/cloud/linode/conftest.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/linode/test_linode.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/linode/test_linode_v4.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/misc/test_terraform.py future-import-boilerplate -tests/unit/plugins/modules/cloud/misc/test_terraform.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/xenserver/FakeAnsibleModule.py future-import-boilerplate -tests/unit/plugins/modules/cloud/xenserver/FakeAnsibleModule.py metaclass-boilerplate -tests/unit/plugins/modules/cloud/xenserver/FakeXenAPI.py future-import-boilerplate -tests/unit/plugins/modules/cloud/xenserver/FakeXenAPI.py metaclass-boilerplate -tests/unit/plugins/modules/conftest.py future-import-boilerplate -tests/unit/plugins/modules/conftest.py metaclass-boilerplate -tests/unit/plugins/modules/monitoring/test_circonus_annotation.py future-import-boilerplate -tests/unit/plugins/modules/monitoring/test_circonus_annotation.py metaclass-boilerplate -tests/unit/plugins/modules/monitoring/test_icinga2_feature.py future-import-boilerplate -tests/unit/plugins/modules/monitoring/test_icinga2_feature.py metaclass-boilerplate -tests/unit/plugins/modules/monitoring/test_pagerduty.py future-import-boilerplate -tests/unit/plugins/modules/monitoring/test_pagerduty.py metaclass-boilerplate -tests/unit/plugins/modules/monitoring/test_pagerduty_alert.py future-import-boilerplate -tests/unit/plugins/modules/monitoring/test_pagerduty_alert.py metaclass-boilerplate -tests/unit/plugins/modules/net_tools/test_nmcli.py future-import-boilerplate -tests/unit/plugins/modules/net_tools/test_nmcli.py metaclass-boilerplate -tests/unit/plugins/modules/notification/test_slack.py future-import-boilerplate -tests/unit/plugins/modules/notification/test_slack.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/language/test_gem.py future-import-boilerplate -tests/unit/plugins/modules/packaging/language/test_gem.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/os/conftest.py future-import-boilerplate -tests/unit/plugins/modules/packaging/os/conftest.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/os/test_apk.py future-import-boilerplate -tests/unit/plugins/modules/packaging/os/test_apk.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/os/test_rhn_channel.py future-import-boilerplate -tests/unit/plugins/modules/packaging/os/test_rhn_channel.py metaclass-boilerplate -tests/unit/plugins/modules/packaging/os/test_rhn_register.py future-import-boilerplate -tests/unit/plugins/modules/packaging/os/test_rhn_register.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/dellemc/test_ome_device_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/dellemc/test_ome_device_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/lxca/test_lxca_cmms.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/lxca/test_lxca_cmms.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/lxca/test_lxca_nodes.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/lxca/test_lxca_nodes.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/conftest.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/conftest.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/hpe_test_utils.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/hpe_test_utils.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_datacenter_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_datacenter_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_enclosure_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_enclosure_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set_info.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager.py metaclass-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager_info.py future-import-boilerplate -tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager_info.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_access_key.py future-import-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_access_key.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_key_pair.py future-import-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_key_pair.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_known_host.py future-import-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_known_host.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_variable.py future-import-boilerplate -tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_variable.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/gitlab.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/gitlab.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_deploy_key.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_deploy_key.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_group.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_group.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_hook.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_hook.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_project.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_project.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_runner.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_runner.py metaclass-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_user.py future-import-boilerplate -tests/unit/plugins/modules/source_control/gitlab/test_gitlab_user.py metaclass-boilerplate -tests/unit/plugins/modules/storage/hpe3par/test_ss_3par_cpg.py future-import-boilerplate -tests/unit/plugins/modules/storage/hpe3par/test_ss_3par_cpg.py metaclass-boilerplate -tests/unit/plugins/modules/system/interfaces_file/interfaces_file/test_interfaces_file.py future-import-boilerplate -tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py future-import-boilerplate -tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py metaclass-boilerplate tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py pylint:blacklisted-name -tests/unit/plugins/modules/system/test_java_keystore.py future-import-boilerplate -tests/unit/plugins/modules/system/test_java_keystore.py metaclass-boilerplate -tests/unit/plugins/modules/system/test_pamd.py metaclass-boilerplate -tests/unit/plugins/modules/system/test_parted.py future-import-boilerplate -tests/unit/plugins/modules/system/test_ufw.py future-import-boilerplate -tests/unit/plugins/modules/system/test_ufw.py metaclass-boilerplate -tests/unit/plugins/modules/utils.py future-import-boilerplate -tests/unit/plugins/modules/utils.py metaclass-boilerplate -tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py future-import-boilerplate -tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py metaclass-boilerplate -tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py future-import-boilerplate -tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py metaclass-boilerplate tests/utils/shippable/check_matrix.py replace-urlopen tests/utils/shippable/timing.py shebang diff --git a/tests/unit/mock/loader.py b/tests/unit/mock/loader.py index 0ee47fbb9f..907ec9b928 100644 --- a/tests/unit/mock/loader.py +++ b/tests/unit/mock/loader.py @@ -1,21 +1,7 @@ # (c) 2012-2014, Michael DeHaan # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/mock/path.py b/tests/unit/mock/path.py index c472a8827f..c1c075bc02 100644 --- a/tests/unit/mock/path.py +++ b/tests/unit/mock/path.py @@ -1,3 +1,6 @@ +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat.mock import MagicMock from ansible.utils.path import unfrackpath diff --git a/tests/unit/mock/procenv.py b/tests/unit/mock/procenv.py index 66941abb59..616a75bbd3 100644 --- a/tests/unit/mock/procenv.py +++ b/tests/unit/mock/procenv.py @@ -1,22 +1,8 @@ # (c) 2016, Matt Davis # (c) 2016, Toshio Kuratomi # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/mock/vault_helper.py b/tests/unit/mock/vault_helper.py index dcce9c7841..b54629da49 100644 --- a/tests/unit/mock/vault_helper.py +++ b/tests/unit/mock/vault_helper.py @@ -1,17 +1,5 @@ -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/mock/yaml_helper.py b/tests/unit/mock/yaml_helper.py index cc095fea1a..a646c0241c 100644 --- a/tests/unit/mock/yaml_helper.py +++ b/tests/unit/mock/yaml_helper.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import io import yaml diff --git a/tests/unit/plugins/module_utils/cloud/test_backoff.py b/tests/unit/plugins/module_utils/cloud/test_backoff.py index f7c2cabe65..5d0438b794 100644 --- a/tests/unit/plugins/module_utils/cloud/test_backoff.py +++ b/tests/unit/plugins/module_utils/cloud/test_backoff.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import random from ansible_collections.community.general.tests.unit.compat import unittest diff --git a/tests/unit/plugins/module_utils/conftest.py b/tests/unit/plugins/module_utils/conftest.py index 9e4e525746..8bc13c4d55 100644 --- a/tests/unit/plugins/module_utils/conftest.py +++ b/tests/unit/plugins/module_utils/conftest.py @@ -1,6 +1,9 @@ # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import sys from io import BytesIO diff --git a/tests/unit/plugins/module_utils/gcp/test_auth.py b/tests/unit/plugins/module_utils/gcp/test_auth.py index e91f945f3a..6ca8c86f44 100644 --- a/tests/unit/plugins/module_utils/gcp/test_auth.py +++ b/tests/unit/plugins/module_utils/gcp/test_auth.py @@ -1,20 +1,11 @@ # -*- coding: utf-8 -*- # (c) 2016, Tom Melendez (@supertom) # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import os import pytest diff --git a/tests/unit/plugins/module_utils/gcp/test_utils.py b/tests/unit/plugins/module_utils/gcp/test_utils.py index d8c51caac0..c05f676866 100644 --- a/tests/unit/plugins/module_utils/gcp/test_utils.py +++ b/tests/unit/plugins/module_utils/gcp/test_utils.py @@ -1,20 +1,10 @@ # -*- coding: utf-8 -*- # (c) 2016, Tom Melendez # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible_collections.community.general.tests.unit.compat import mock, unittest from ansible_collections.community.general.plugins.module_utils.gcp import check_min_pkg_version, GCPUtils, GCPInvalidURLError diff --git a/tests/unit/plugins/module_utils/hwc/test_dict_comparison.py b/tests/unit/plugins/module_utils/hwc/test_dict_comparison.py index d920664369..bcdfc4e2ca 100644 --- a/tests/unit/plugins/module_utils/hwc/test_dict_comparison.py +++ b/tests/unit/plugins/module_utils/hwc/test_dict_comparison.py @@ -3,20 +3,10 @@ # # (c) 2016, Tom Melendez # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.plugins.module_utils.hwc_utils import are_different_dicts diff --git a/tests/unit/plugins/module_utils/hwc/test_hwc_utils.py b/tests/unit/plugins/module_utils/hwc/test_hwc_utils.py index 1d37a0f7bf..1891875959 100644 --- a/tests/unit/plugins/module_utils/hwc/test_hwc_utils.py +++ b/tests/unit/plugins/module_utils/hwc/test_hwc_utils.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.plugins.module_utils.hwc_utils import (HwcModuleException, navigate_value) diff --git a/tests/unit/plugins/module_utils/postgresql/test_postgres.py b/tests/unit/plugins/module_utils/postgresql/test_postgres.py index 143efb9bd4..b5bb693b45 100644 --- a/tests/unit/plugins/module_utils/postgresql/test_postgres.py +++ b/tests/unit/plugins/module_utils/postgresql/test_postgres.py @@ -1,6 +1,9 @@ # Copyright: (c) 2019, Andrew Klychkov (@Andersson007) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest import ansible_collections.community.general.plugins.module_utils.postgres as pg diff --git a/tests/unit/plugins/module_utils/remote_management/dellemc/test_ome.py b/tests/unit/plugins/module_utils/remote_management/dellemc/test_ome.py index fe3bf1ae9f..cc698d0b21 100644 --- a/tests/unit/plugins/module_utils/remote_management/dellemc/test_ome.py +++ b/tests/unit/plugins/module_utils/remote_management/dellemc/test_ome.py @@ -10,7 +10,8 @@ # Other trademarks may be trademarks of their respective owners. # -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest from ansible.module_utils.urls import ConnectionError, SSLValidationError diff --git a/tests/unit/plugins/module_utils/test_database.py b/tests/unit/plugins/module_utils/test_database.py index 1d7093b906..f5784a598a 100644 --- a/tests/unit/plugins/module_utils/test_database.py +++ b/tests/unit/plugins/module_utils/test_database.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest from ansible_collections.community.general.plugins.module_utils.database import ( diff --git a/tests/unit/plugins/module_utils/test_hetzner.py b/tests/unit/plugins/module_utils/test_hetzner.py index 05da2b1aca..065801a1ca 100644 --- a/tests/unit/plugins/module_utils/test_hetzner.py +++ b/tests/unit/plugins/module_utils/test_hetzner.py @@ -1,6 +1,9 @@ # Copyright: (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import copy import json import pytest diff --git a/tests/unit/plugins/module_utils/test_kubevirt.py b/tests/unit/plugins/module_utils/test_kubevirt.py index 3634d78d66..6ae361d991 100644 --- a/tests/unit/plugins/module_utils/test_kubevirt.py +++ b/tests/unit/plugins/module_utils/test_kubevirt.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import pytest diff --git a/tests/unit/plugins/module_utils/test_utm_utils.py b/tests/unit/plugins/module_utils/test_utm_utils.py index 7ebed4984c..f28d5dc85d 100644 --- a/tests/unit/plugins/module_utils/test_utm_utils.py +++ b/tests/unit/plugins/module_utils/test_utm_utils.py @@ -6,24 +6,10 @@ # # Copyright: (c) 2018, Johannes Brunswicker # -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible_collections.community.general.plugins.module_utils.utm_utils import UTM diff --git a/tests/unit/plugins/module_utils/xenserver/FakeAnsibleModule.py b/tests/unit/plugins/module_utils/xenserver/FakeAnsibleModule.py index b02ad4a136..c443dfdb6e 100644 --- a/tests/unit/plugins/module_utils/xenserver/FakeAnsibleModule.py +++ b/tests/unit/plugins/module_utils/xenserver/FakeAnsibleModule.py @@ -3,6 +3,9 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class AnsibleModuleException(Exception): def __init__(self, *args, **kwargs): diff --git a/tests/unit/plugins/module_utils/xenserver/FakeXenAPI.py b/tests/unit/plugins/module_utils/xenserver/FakeXenAPI.py index dc657a6a09..2493317561 100644 --- a/tests/unit/plugins/module_utils/xenserver/FakeXenAPI.py +++ b/tests/unit/plugins/module_utils/xenserver/FakeXenAPI.py @@ -3,6 +3,9 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + FAKE_API_VERSION = "1.1" diff --git a/tests/unit/plugins/module_utils/xenserver/common.py b/tests/unit/plugins/module_utils/xenserver/common.py index ea58c6455b..52a01c990e 100644 --- a/tests/unit/plugins/module_utils/xenserver/common.py +++ b/tests/unit/plugins/module_utils/xenserver/common.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/conftest.py b/tests/unit/plugins/module_utils/xenserver/conftest.py index decf2d59f1..52f654bcc6 100644 --- a/tests/unit/plugins/module_utils/xenserver/conftest.py +++ b/tests/unit/plugins/module_utils/xenserver/conftest.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/test_gather_vm_params_and_facts.py b/tests/unit/plugins/module_utils/xenserver/test_gather_vm_params_and_facts.py index e8b309b38c..b1020bee70 100644 --- a/tests/unit/plugins/module_utils/xenserver/test_gather_vm_params_and_facts.py +++ b/tests/unit/plugins/module_utils/xenserver/test_gather_vm_params_and_facts.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/test_get_object_ref.py b/tests/unit/plugins/module_utils/xenserver/test_get_object_ref.py index 267302a099..0fe7a7c1bf 100644 --- a/tests/unit/plugins/module_utils/xenserver/test_get_object_ref.py +++ b/tests/unit/plugins/module_utils/xenserver/test_get_object_ref.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/test_misc.py b/tests/unit/plugins/module_utils/xenserver/test_misc.py index 8a8d4eaeef..3fad0ee50d 100644 --- a/tests/unit/plugins/module_utils/xenserver/test_misc.py +++ b/tests/unit/plugins/module_utils/xenserver/test_misc.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/test_netaddr_functions.py b/tests/unit/plugins/module_utils/xenserver/test_netaddr_functions.py index 33af72a14f..d4b80f47dc 100644 --- a/tests/unit/plugins/module_utils/xenserver/test_netaddr_functions.py +++ b/tests/unit/plugins/module_utils/xenserver/test_netaddr_functions.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/test_set_vm_power_state.py b/tests/unit/plugins/module_utils/xenserver/test_set_vm_power_state.py index fddb84ed65..a3048f4331 100644 --- a/tests/unit/plugins/module_utils/xenserver/test_set_vm_power_state.py +++ b/tests/unit/plugins/module_utils/xenserver/test_set_vm_power_state.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/test_wait_for_functions.py b/tests/unit/plugins/module_utils/xenserver/test_wait_for_functions.py index 9358e0bd91..c06ad6de6b 100644 --- a/tests/unit/plugins/module_utils/xenserver/test_wait_for_functions.py +++ b/tests/unit/plugins/module_utils/xenserver/test_wait_for_functions.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/test_xapi.py b/tests/unit/plugins/module_utils/xenserver/test_xapi.py index 63cbbea1ba..3b553d1237 100644 --- a/tests/unit/plugins/module_utils/xenserver/test_xapi.py +++ b/tests/unit/plugins/module_utils/xenserver/test_xapi.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/xenserver/test_xenserverobject.py b/tests/unit/plugins/module_utils/xenserver/test_xenserverobject.py index 8df2e2cadf..60570e03cb 100644 --- a/tests/unit/plugins/module_utils/xenserver/test_xenserverobject.py +++ b/tests/unit/plugins/module_utils/xenserver/test_xenserverobject.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/modules/cloud/google/test_gce_tag.py b/tests/unit/plugins/modules/cloud/google/test_gce_tag.py index 7f94c4bfca..708bb454eb 100644 --- a/tests/unit/plugins/modules/cloud/google/test_gce_tag.py +++ b/tests/unit/plugins/modules/cloud/google/test_gce_tag.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import unittest from ansible_collections.community.general.plugins.modules.cloud.google.gce_tag import _get_changed_items, _intersect_items, _union_items diff --git a/tests/unit/plugins/modules/cloud/google/test_gcp_url_map.py b/tests/unit/plugins/modules/cloud/google/test_gcp_url_map.py index 9c3a17c5ce..84b46357db 100644 --- a/tests/unit/plugins/modules/cloud/google/test_gcp_url_map.py +++ b/tests/unit/plugins/modules/cloud/google/test_gcp_url_map.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import unittest from ansible_collections.community.general.plugins.modules.cloud.google.gcp_url_map import _build_path_matchers, _build_url_map_dict diff --git a/tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_rs.py b/tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_rs.py index c4413a85df..0749214654 100644 --- a/tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_rs.py +++ b/tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_rs.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest openshiftdynamic = pytest.importorskip("openshift.dynamic") diff --git a/tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_vm.py b/tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_vm.py index d0c9179ab0..9b3f5fbc5a 100644 --- a/tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_vm.py +++ b/tests/unit/plugins/modules/cloud/kubevirt/test_kubevirt_vm.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest openshiftdynamic = pytest.importorskip("openshift.dynamic") diff --git a/tests/unit/plugins/modules/cloud/linode/conftest.py b/tests/unit/plugins/modules/cloud/linode/conftest.py index 9a7d7371f5..6ce13a7273 100644 --- a/tests/unit/plugins/modules/cloud/linode/conftest.py +++ b/tests/unit/plugins/modules/cloud/linode/conftest.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest diff --git a/tests/unit/plugins/modules/cloud/linode/test_linode.py b/tests/unit/plugins/modules/cloud/linode/test_linode.py index 08737e4781..51e9b805b8 100644 --- a/tests/unit/plugins/modules/cloud/linode/test_linode.py +++ b/tests/unit/plugins/modules/cloud/linode/test_linode.py @@ -1,4 +1,5 @@ from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest diff --git a/tests/unit/plugins/modules/cloud/linode/test_linode_v4.py b/tests/unit/plugins/modules/cloud/linode/test_linode_v4.py index 6eaa9997bc..fece341431 100644 --- a/tests/unit/plugins/modules/cloud/linode/test_linode_v4.py +++ b/tests/unit/plugins/modules/cloud/linode/test_linode_v4.py @@ -1,4 +1,5 @@ from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import json import os diff --git a/tests/unit/plugins/modules/cloud/misc/test_terraform.py b/tests/unit/plugins/modules/cloud/misc/test_terraform.py index 51aab2c531..898f99f2b8 100644 --- a/tests/unit/plugins/modules/cloud/misc/test_terraform.py +++ b/tests/unit/plugins/modules/cloud/misc/test_terraform.py @@ -1,5 +1,7 @@ # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import json diff --git a/tests/unit/plugins/modules/cloud/xenserver/FakeAnsibleModule.py b/tests/unit/plugins/modules/cloud/xenserver/FakeAnsibleModule.py index b02ad4a136..c443dfdb6e 100644 --- a/tests/unit/plugins/modules/cloud/xenserver/FakeAnsibleModule.py +++ b/tests/unit/plugins/modules/cloud/xenserver/FakeAnsibleModule.py @@ -3,6 +3,9 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + class AnsibleModuleException(Exception): def __init__(self, *args, **kwargs): diff --git a/tests/unit/plugins/modules/cloud/xenserver/FakeXenAPI.py b/tests/unit/plugins/modules/cloud/xenserver/FakeXenAPI.py index dc657a6a09..2493317561 100644 --- a/tests/unit/plugins/modules/cloud/xenserver/FakeXenAPI.py +++ b/tests/unit/plugins/modules/cloud/xenserver/FakeXenAPI.py @@ -3,6 +3,9 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + FAKE_API_VERSION = "1.1" diff --git a/tests/unit/plugins/modules/cloud/xenserver/common.py b/tests/unit/plugins/modules/cloud/xenserver/common.py index 6e652a5d71..9d6ff0aef7 100644 --- a/tests/unit/plugins/modules/cloud/xenserver/common.py +++ b/tests/unit/plugins/modules/cloud/xenserver/common.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/modules/cloud/xenserver/conftest.py b/tests/unit/plugins/modules/cloud/xenserver/conftest.py index b047a5d233..d2bfcd0e8d 100644 --- a/tests/unit/plugins/modules/cloud/xenserver/conftest.py +++ b/tests/unit/plugins/modules/cloud/xenserver/conftest.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/modules/cloud/xenserver/test_xenserver_guest_info.py b/tests/unit/plugins/modules/cloud/xenserver/test_xenserver_guest_info.py index a6d58d90bc..16f209c287 100644 --- a/tests/unit/plugins/modules/cloud/xenserver/test_xenserver_guest_info.py +++ b/tests/unit/plugins/modules/cloud/xenserver/test_xenserver_guest_info.py @@ -3,7 +3,7 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/modules/cloud/xenserver/test_xenserver_guest_powerstate.py b/tests/unit/plugins/modules/cloud/xenserver/test_xenserver_guest_powerstate.py index 17cdebaca7..ae8735c35a 100644 --- a/tests/unit/plugins/modules/cloud/xenserver/test_xenserver_guest_powerstate.py +++ b/tests/unit/plugins/modules/cloud/xenserver/test_xenserver_guest_powerstate.py @@ -3,10 +3,9 @@ # Copyright: (c) 2019, Bojan Vitnik # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import, division, print_function +from __future__ import (absolute_import, division, print_function) __metaclass__ = type - import json import pytest diff --git a/tests/unit/plugins/modules/conftest.py b/tests/unit/plugins/modules/conftest.py index 3bbfe0b7a8..a7d1e0475f 100644 --- a/tests/unit/plugins/modules/conftest.py +++ b/tests/unit/plugins/modules/conftest.py @@ -1,6 +1,9 @@ # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import pytest diff --git a/tests/unit/plugins/modules/monitoring/test_circonus_annotation.py b/tests/unit/plugins/modules/monitoring/test_circonus_annotation.py index 46437a35f0..b64a20f8ae 100644 --- a/tests/unit/plugins/modules/monitoring/test_circonus_annotation.py +++ b/tests/unit/plugins/modules/monitoring/test_circonus_annotation.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import io import json diff --git a/tests/unit/plugins/modules/monitoring/test_icinga2_feature.py b/tests/unit/plugins/modules/monitoring/test_icinga2_feature.py index 1cab902abf..52398a8495 100644 --- a/tests/unit/plugins/modules/monitoring/test_icinga2_feature.py +++ b/tests/unit/plugins/modules/monitoring/test_icinga2_feature.py @@ -5,6 +5,9 @@ # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.plugins.modules.monitoring import icinga2_feature from ansible_collections.community.general.tests.unit.plugins.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args from ansible_collections.community.general.tests.unit.compat.mock import patch diff --git a/tests/unit/plugins/modules/monitoring/test_pagerduty.py b/tests/unit/plugins/modules/monitoring/test_pagerduty.py index 8f927b2062..3c9c28a4d4 100644 --- a/tests/unit/plugins/modules/monitoring/test_pagerduty.py +++ b/tests/unit/plugins/modules/monitoring/test_pagerduty.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.plugins.modules.monitoring import pagerduty diff --git a/tests/unit/plugins/modules/monitoring/test_pagerduty_alert.py b/tests/unit/plugins/modules/monitoring/test_pagerduty_alert.py index 3d5cdc3ab2..e0951dcf7e 100644 --- a/tests/unit/plugins/modules/monitoring/test_pagerduty_alert.py +++ b/tests/unit/plugins/modules/monitoring/test_pagerduty_alert.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.plugins.modules.monitoring import pagerduty_alert diff --git a/tests/unit/plugins/modules/net_tools/test_nmcli.py b/tests/unit/plugins/modules/net_tools/test_nmcli.py index 52b45eb1d1..c25610dfca 100644 --- a/tests/unit/plugins/modules/net_tools/test_nmcli.py +++ b/tests/unit/plugins/modules/net_tools/test_nmcli.py @@ -1,6 +1,9 @@ # Copyright: (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import pytest diff --git a/tests/unit/plugins/modules/notification/test_slack.py b/tests/unit/plugins/modules/notification/test_slack.py index 2bd2b35a67..2338ef544b 100644 --- a/tests/unit/plugins/modules/notification/test_slack.py +++ b/tests/unit/plugins/modules/notification/test_slack.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import pytest from ansible_collections.community.general.tests.unit.compat.mock import patch diff --git a/tests/unit/plugins/modules/packaging/language/test_gem.py b/tests/unit/plugins/modules/packaging/language/test_gem.py index c421ebe7d2..41f504f6c0 100644 --- a/tests/unit/plugins/modules/packaging/language/test_gem.py +++ b/tests/unit/plugins/modules/packaging/language/test_gem.py @@ -1,5 +1,8 @@ # Copyright (c) 2018 Antoine Catton # MIT License (see licenses/MIT-license.txt or https://opensource.org/licenses/MIT) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import copy import pytest diff --git a/tests/unit/plugins/modules/packaging/os/conftest.py b/tests/unit/plugins/modules/packaging/os/conftest.py index b107b0fa70..408a023762 100644 --- a/tests/unit/plugins/modules/packaging/os/conftest.py +++ b/tests/unit/plugins/modules/packaging/os/conftest.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible.module_utils.six.moves import xmlrpc_client diff --git a/tests/unit/plugins/modules/packaging/os/test_apk.py b/tests/unit/plugins/modules/packaging/os/test_apk.py index cdb5606996..9577e892ee 100644 --- a/tests/unit/plugins/modules/packaging/os/test_apk.py +++ b/tests/unit/plugins/modules/packaging/os/test_apk.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import mock from ansible_collections.community.general.tests.unit.compat import unittest diff --git a/tests/unit/plugins/modules/packaging/os/test_rhn_channel.py b/tests/unit/plugins/modules/packaging/os/test_rhn_channel.py index 28e722a469..548deaabcc 100644 --- a/tests/unit/plugins/modules/packaging/os/test_rhn_channel.py +++ b/tests/unit/plugins/modules/packaging/os/test_rhn_channel.py @@ -2,6 +2,9 @@ # Copyright (c) 2017 Pierre-Louis Bonicoli # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json from ansible_collections.community.general.plugins.modules.packaging.os import rhn_channel diff --git a/tests/unit/plugins/modules/packaging/os/test_rhn_register.py b/tests/unit/plugins/modules/packaging/os/test_rhn_register.py index 46197143a7..ae2f44aeda 100644 --- a/tests/unit/plugins/modules/packaging/os/test_rhn_register.py +++ b/tests/unit/plugins/modules/packaging/os/test_rhn_register.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import os diff --git a/tests/unit/plugins/modules/remote_management/dellemc/test_ome_device_info.py b/tests/unit/plugins/modules/remote_management/dellemc/test_ome_device_info.py index 2eb45ed358..5e825c4222 100644 --- a/tests/unit/plugins/modules/remote_management/dellemc/test_ome_device_info.py +++ b/tests/unit/plugins/modules/remote_management/dellemc/test_ome_device_info.py @@ -10,7 +10,8 @@ # Other trademarks may be trademarks of their respective owners. # -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest from ansible_collections.community.general.tests.unit.plugins.modules.utils import set_module_args, exit_json, \ diff --git a/tests/unit/plugins/modules/remote_management/lxca/test_lxca_cmms.py b/tests/unit/plugins/modules/remote_management/lxca/test_lxca_cmms.py index 6bdb5a7716..ab1333de9d 100644 --- a/tests/unit/plugins/modules/remote_management/lxca/test_lxca_cmms.py +++ b/tests/unit/plugins/modules/remote_management/lxca/test_lxca_cmms.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import pytest diff --git a/tests/unit/plugins/modules/remote_management/lxca/test_lxca_nodes.py b/tests/unit/plugins/modules/remote_management/lxca/test_lxca_nodes.py index de71fcbf9f..7b009ef27b 100644 --- a/tests/unit/plugins/modules/remote_management/lxca/test_lxca_nodes.py +++ b/tests/unit/plugins/modules/remote_management/lxca/test_lxca_nodes.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json import pytest diff --git a/tests/unit/plugins/modules/remote_management/oneview/conftest.py b/tests/unit/plugins/modules/remote_management/oneview/conftest.py index 8d18260483..740c71740a 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/conftest.py +++ b/tests/unit/plugins/modules/remote_management/oneview/conftest.py @@ -1,5 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest from mock import Mock, patch diff --git a/tests/unit/plugins/modules/remote_management/oneview/hpe_test_utils.py b/tests/unit/plugins/modules/remote_management/oneview/hpe_test_utils.py index 104070d783..1cd6fb78c4 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/hpe_test_utils.py +++ b/tests/unit/plugins/modules/remote_management/oneview/hpe_test_utils.py @@ -1,19 +1,10 @@ # -*- coding: utf-8 -*- # # Copyright (2016-2017) Hewlett Packard Enterprise Development LP -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest import re diff --git a/tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py b/tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py index 4e0f3a5039..3b41cee1b5 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py +++ b/tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import sys from ansible_collections.community.general.tests.unit.compat.mock import Mock diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_datacenter_info.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_datacenter_info.py index f49a5e2cfa..d694d4a306 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_datacenter_info.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_datacenter_info.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest from ansible_collections.community.general.plugins.modules.remote_management.oneview.oneview_datacenter_info import DatacenterInfoModule diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_enclosure_info.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_enclosure_info.py index e00830441c..493b83ed5e 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_enclosure_info.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_enclosure_info.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.plugins.modules.remote_management.oneview.oneview_enclosure_info import EnclosureInfoModule from .hpe_test_utils import FactsParamsTestCase diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network.py index 4b485b4176..205a18549d 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network.py @@ -1,19 +1,10 @@ # -*- coding: utf-8 -*- # # Copyright (2016-2017) Hewlett Packard Enterprise Development LP -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import yaml diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network_info.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network_info.py index cd7ac2a8da..bc25a030b1 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network_info.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_ethernet_network_info.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from .oneview_module_loader import EthernetNetworkInfoModule diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network.py index 0417ebbb18..04bb42ba42 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network.py @@ -1,19 +1,10 @@ # -*- coding: utf-8 -*- # # Copyright (2016-2017) Hewlett Packard Enterprise Development LP -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible_collections.community.general.tests.unit.compat import unittest from .oneview_module_loader import FcNetworkModule diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network_info.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network_info.py index 6abbc48c1e..6096aff756 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network_info.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fc_network_info.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from .oneview_module_loader import FcNetworkInfoModule from .hpe_test_utils import FactsParamsTestCase diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network.py index 171bee52fc..af00803fc6 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network.py @@ -1,19 +1,10 @@ # -*- coding: utf-8 -*- # # Copyright (2016-2017) Hewlett Packard Enterprise Development LP -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible_collections.community.general.tests.unit.compat import unittest from .oneview_module_loader import FcoeNetworkModule diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network_info.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network_info.py index 35cc03002f..7dd7309d9f 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network_info.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_fcoe_network_info.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from .oneview_module_loader import FcoeNetworkInfoModule diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group.py index 9ca0f080fa..be7d9662ad 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from copy import deepcopy from ansible_collections.community.general.tests.unit.compat import unittest, mock diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group_info.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group_info.py index 7c22d16cc1..dc16031f31 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group_info.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_logical_interconnect_group_info.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.plugins.modules.remote_management.oneview.oneview_logical_interconnect_group_info import ( LogicalInterconnectGroupInfoModule diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set.py index 6a2dd52253..b410606465 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest, mock from .hpe_test_utils import OneViewBaseTestCase from .oneview_module_loader import NetworkSetModule diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set_info.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set_info.py index 3cee9089f4..dd0a5cf4f9 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set_info.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_network_set_info.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from .oneview_module_loader import NetworkSetInfoModule from .hpe_test_utils import FactsParamsTestCase diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager.py index 8b4fc4156d..82c265700b 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest, mock from .oneview_module_loader import SanManagerModule from .hpe_test_utils import OneViewBaseTestCase diff --git a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager_info.py b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager_info.py index 0b6dd175e4..df011b701f 100644 --- a/tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager_info.py +++ b/tests/unit/plugins/modules/remote_management/oneview/test_oneview_san_manager_info.py @@ -1,6 +1,9 @@ # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from .oneview_module_loader import SanManagerInfoModule from .hpe_test_utils import FactsParamsTestCase diff --git a/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_access_key.py b/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_access_key.py index 29dc9250c8..654f565cc4 100644 --- a/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_access_key.py +++ b/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_access_key.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.plugins.module_utils.source_control.bitbucket import BitbucketHelper from ansible_collections.community.general.plugins.modules.source_control.bitbucket import bitbucket_access_key from ansible_collections.community.general.tests.unit.compat import unittest diff --git a/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_key_pair.py b/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_key_pair.py index fb5a039f8f..6c5ee0152e 100644 --- a/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_key_pair.py +++ b/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_key_pair.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.plugins.module_utils.source_control.bitbucket import BitbucketHelper from ansible_collections.community.general.plugins.modules.source_control.bitbucket import bitbucket_pipeline_key_pair from ansible_collections.community.general.tests.unit.compat import unittest diff --git a/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_known_host.py b/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_known_host.py index 62fcd4abd4..5d797f41c4 100644 --- a/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_known_host.py +++ b/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_known_host.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest from ansible_collections.community.general.plugins.module_utils.source_control.bitbucket import BitbucketHelper diff --git a/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_variable.py b/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_variable.py index 875bb48ec4..e291b09f40 100644 --- a/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_variable.py +++ b/tests/unit/plugins/modules/source_control/bitbucket/test_bitbucket_pipeline_variable.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.plugins.module_utils.source_control.bitbucket import BitbucketHelper from ansible_collections.community.general.plugins.modules.source_control.bitbucket import bitbucket_pipeline_variable from ansible_collections.community.general.tests.unit.compat import unittest diff --git a/tests/unit/plugins/modules/source_control/gitlab/gitlab.py b/tests/unit/plugins/modules/source_control/gitlab/gitlab.py index 5a6bc0ea58..100e47431a 100644 --- a/tests/unit/plugins/modules/source_control/gitlab/gitlab.py +++ b/tests/unit/plugins/modules/source_control/gitlab/gitlab.py @@ -3,7 +3,8 @@ # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import sys diff --git a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_deploy_key.py b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_deploy_key.py index a0a81a63fc..7647644dd4 100644 --- a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_deploy_key.py +++ b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_deploy_key.py @@ -3,7 +3,8 @@ # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest diff --git a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_group.py b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_group.py index 6205ec5e60..0d01184c36 100644 --- a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_group.py +++ b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_group.py @@ -3,7 +3,8 @@ # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest diff --git a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_hook.py b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_hook.py index 1d9b2eb357..740f91baeb 100644 --- a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_hook.py +++ b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_hook.py @@ -3,7 +3,9 @@ # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest from ansible_collections.community.general.plugins.modules.source_control.gitlab.gitlab_hook import GitLabHook diff --git a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_project.py b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_project.py index ea211e3c7b..caa0e92465 100644 --- a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_project.py +++ b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_project.py @@ -3,7 +3,8 @@ # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest diff --git a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_runner.py b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_runner.py index b7a39b5918..6af406f496 100644 --- a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_runner.py +++ b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_runner.py @@ -3,7 +3,8 @@ # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest diff --git a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_user.py b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_user.py index 45dcf6c6dc..f78f0efb71 100644 --- a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_user.py +++ b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_user.py @@ -3,7 +3,8 @@ # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import absolute_import +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import pytest diff --git a/tests/unit/plugins/modules/storage/hpe3par/test_ss_3par_cpg.py b/tests/unit/plugins/modules/storage/hpe3par/test_ss_3par_cpg.py index 138f6c1091..8e32e150c7 100644 --- a/tests/unit/plugins/modules/storage/hpe3par/test_ss_3par_cpg.py +++ b/tests/unit/plugins/modules/storage/hpe3par/test_ss_3par_cpg.py @@ -1,7 +1,8 @@ # Copyright: (c) 2018, Hewlett Packard Enterprise Development LP -# GNU General Public License v3.0+ -# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import mock import sys diff --git a/tests/unit/plugins/modules/system/interfaces_file/interfaces_file/test_interfaces_file.py b/tests/unit/plugins/modules/system/interfaces_file/interfaces_file/test_interfaces_file.py index ef77eb96f0..02cdc6fdd5 100644 --- a/tests/unit/plugins/modules/system/interfaces_file/interfaces_file/test_interfaces_file.py +++ b/tests/unit/plugins/modules/system/interfaces_file/interfaces_file/test_interfaces_file.py @@ -1,20 +1,8 @@ # (c) 2017, Roman Belyakovsky # -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.ansible.posix.tests.unit.compat import unittest diff --git a/tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py b/tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py index 830a90abea..b61385108a 100644 --- a/tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py +++ b/tests/unit/plugins/modules/system/interfaces_file/test_interfaces_file.py @@ -2,18 +2,10 @@ # # This file is part of Ansible # -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.plugins.modules.system import interfaces_file diff --git a/tests/unit/plugins/modules/system/test_java_keystore.py b/tests/unit/plugins/modules/system/test_java_keystore.py index 8ba0a13de0..c2f3421c72 100644 --- a/tests/unit/plugins/modules/system/test_java_keystore.py +++ b/tests/unit/plugins/modules/system/test_java_keystore.py @@ -5,6 +5,9 @@ # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import os from ansible_collections.community.general.tests.unit.plugins.modules.utils import ModuleTestCase, set_module_args diff --git a/tests/unit/plugins/modules/system/test_pamd.py b/tests/unit/plugins/modules/system/test_pamd.py index 1dbfb77c47..e7a6883564 100644 --- a/tests/unit/plugins/modules/system/test_pamd.py +++ b/tests/unit/plugins/modules/system/test_pamd.py @@ -1,4 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.plugins.modules.system.pamd import PamdRule diff --git a/tests/unit/plugins/modules/system/test_parted.py b/tests/unit/plugins/modules/system/test_parted.py index c709938d6d..ea003d4328 100644 --- a/tests/unit/plugins/modules/system/test_parted.py +++ b/tests/unit/plugins/modules/system/test_parted.py @@ -1,21 +1,9 @@ # (c) 2017 Red Hat Inc. -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) __metaclass__ = type + from ansible_collections.community.general.tests.unit.compat.mock import patch, call from ansible_collections.community.general.plugins.modules.system import parted as parted_module from ansible_collections.community.general.plugins.modules.system.parted import parse_partition_info diff --git a/tests/unit/plugins/modules/system/test_ufw.py b/tests/unit/plugins/modules/system/test_ufw.py index 5e67ba5051..3374c49322 100644 --- a/tests/unit/plugins/modules/system/test_ufw.py +++ b/tests/unit/plugins/modules/system/test_ufw.py @@ -1,3 +1,7 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type from ansible_collections.community.general.tests.unit.compat import unittest from ansible_collections.community.general.tests.unit.compat.mock import patch diff --git a/tests/unit/plugins/modules/utils.py b/tests/unit/plugins/modules/utils.py index 386dbc4063..1a28072be1 100644 --- a/tests/unit/plugins/modules/utils.py +++ b/tests/unit/plugins/modules/utils.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import json from ansible_collections.community.general.tests.unit.compat import unittest diff --git a/tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py b/tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py index fde8111227..db3f04ddf8 100644 --- a/tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py +++ b/tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest from ansible_collections.community.general.plugins.modules.web_infrastructure.apache2_module import create_apache_identifier diff --git a/tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py b/tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py index a9ff15fe5d..ccfeb24536 100644 --- a/tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py +++ b/tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py @@ -1,3 +1,8 @@ +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + from io import BytesIO from ansible_collections.community.general.plugins.modules.web_infrastructure.jenkins_plugin import JenkinsPlugin