From 5c871242a74f00ac3a55f4156ed71320386f9c81 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Thu, 18 Nov 2021 17:31:26 +0100 Subject: [PATCH] Add __future__ imports and __metaclass__ for automationhub This patch is needed to pass Automation Hub tests. --- plugins/doc_fragments/ipamodule_base_docs.py | 4 ++++ plugins/module_utils/ansible_freeipa_module.py | 4 ++++ plugins/modules/ipaautomember.py | 3 +++ plugins/modules/ipaautomountlocation.py | 4 ++++ plugins/modules/ipaconfig.py | 4 ++++ plugins/modules/ipadelegation.py | 4 ++++ plugins/modules/ipadnsconfig.py | 4 ++++ plugins/modules/ipadnsforwardzone.py | 4 ++++ plugins/modules/ipadnsrecord.py | 4 ++++ plugins/modules/ipadnszone.py | 4 ++++ plugins/modules/ipagroup.py | 4 ++++ plugins/modules/ipahbacrule.py | 4 ++++ plugins/modules/ipahbacsvc.py | 4 ++++ plugins/modules/ipahbacsvcgroup.py | 4 ++++ plugins/modules/ipahost.py | 4 ++++ plugins/modules/ipahostgroup.py | 4 ++++ plugins/modules/ipalocation.py | 4 ++++ plugins/modules/ipapermission.py | 4 ++++ plugins/modules/ipaprivilege.py | 4 ++++ plugins/modules/ipapwpolicy.py | 4 ++++ plugins/modules/iparole.py | 4 ++++ plugins/modules/ipaselfservice.py | 4 ++++ plugins/modules/ipaserver.py | 4 ++++ plugins/modules/ipaservice.py | 4 ++++ plugins/modules/ipasudocmd.py | 4 ++++ plugins/modules/ipasudocmdgroup.py | 4 ++++ plugins/modules/ipasudorule.py | 4 ++++ plugins/modules/ipatopologysegment.py | 4 ++++ plugins/modules/ipatopologysuffix.py | 4 ++++ plugins/modules/ipatrust.py | 4 ++++ plugins/modules/ipauser.py | 4 ++++ plugins/modules/ipavault.py | 4 ++++ roles/ipabackup/library/ipabackup_get_backup_dir.py | 4 ++++ roles/ipaclient/action_plugins/ipaclient_get_otp.py | 4 ++++ roles/ipaclient/library/ipaclient_api.py | 4 ++++ roles/ipaclient/library/ipaclient_fix_ca.py | 4 ++++ roles/ipaclient/library/ipaclient_fstore.py | 4 ++++ roles/ipaclient/library/ipaclient_get_facts.py | 4 ++++ roles/ipaclient/library/ipaclient_get_otp.py | 4 ++++ roles/ipaclient/library/ipaclient_ipa_conf.py | 4 ++++ roles/ipaclient/library/ipaclient_join.py | 4 ++++ roles/ipaclient/library/ipaclient_set_hostname.py | 4 ++++ roles/ipaclient/library/ipaclient_setup_automount.py | 4 ++++ roles/ipaclient/library/ipaclient_setup_firefox.py | 4 ++++ roles/ipaclient/library/ipaclient_setup_krb5.py | 4 ++++ roles/ipaclient/library/ipaclient_setup_nis.py | 4 ++++ roles/ipaclient/library/ipaclient_setup_nss.py | 4 ++++ roles/ipaclient/library/ipaclient_setup_ntp.py | 4 ++++ roles/ipaclient/library/ipaclient_setup_ssh.py | 4 ++++ roles/ipaclient/library/ipaclient_setup_sssd.py | 4 ++++ roles/ipaclient/library/ipaclient_test.py | 4 ++++ roles/ipaclient/library/ipaclient_test_keytab.py | 4 ++++ roles/ipaclient/module_utils/ansible_ipa_client.py | 4 ++++ roles/ipareplica/library/ipareplica_add_to_ipaservers.py | 4 +++- roles/ipareplica/library/ipareplica_create_ipa_conf.py | 4 +++- .../library/ipareplica_custodia_import_dm_password.py | 4 +++- roles/ipareplica/library/ipareplica_ds_apply_updates.py | 4 +++- roles/ipareplica/library/ipareplica_ds_enable_ssl.py | 4 +++- roles/ipareplica/library/ipareplica_enable_ipa.py | 4 +++- roles/ipareplica/library/ipareplica_install_ca_certs.py | 4 +++- roles/ipareplica/library/ipareplica_krb_enable_ssl.py | 4 +++- roles/ipareplica/library/ipareplica_master_password.py | 4 ++++ roles/ipareplica/library/ipareplica_prepare.py | 4 +++- roles/ipareplica/library/ipareplica_promote_openldap_conf.py | 4 +++- roles/ipareplica/library/ipareplica_promote_sssd.py | 4 +++- roles/ipareplica/library/ipareplica_restart_kdc.py | 4 +++- roles/ipareplica/library/ipareplica_setup_adtrust.py | 4 +++- roles/ipareplica/library/ipareplica_setup_ca.py | 4 +++- roles/ipareplica/library/ipareplica_setup_certmonger.py | 4 +++- roles/ipareplica/library/ipareplica_setup_custodia.py | 4 +++- roles/ipareplica/library/ipareplica_setup_dns.py | 4 +++- roles/ipareplica/library/ipareplica_setup_ds.py | 4 +++- roles/ipareplica/library/ipareplica_setup_http.py | 4 +++- roles/ipareplica/library/ipareplica_setup_kra.py | 4 +++- roles/ipareplica/library/ipareplica_setup_krb.py | 4 +++- roles/ipareplica/library/ipareplica_setup_otpd.py | 4 +++- roles/ipareplica/library/ipareplica_test.py | 4 ++++ roles/ipareplica/module_utils/ansible_ipa_replica.py | 4 ++++ roles/ipaserver/library/ipaserver_enable_ipa.py | 4 +++- roles/ipaserver/library/ipaserver_load_cache.py | 4 +++- roles/ipaserver/library/ipaserver_master_password.py | 4 ++++ roles/ipaserver/library/ipaserver_prepare.py | 4 +++- roles/ipaserver/library/ipaserver_set_ds_password.py | 4 +++- roles/ipaserver/library/ipaserver_setup_adtrust.py | 4 +++- roles/ipaserver/library/ipaserver_setup_ca.py | 4 +++- roles/ipaserver/library/ipaserver_setup_custodia.py | 4 +++- roles/ipaserver/library/ipaserver_setup_dns.py | 4 +++- roles/ipaserver/library/ipaserver_setup_ds.py | 4 +++- roles/ipaserver/library/ipaserver_setup_http.py | 4 +++- roles/ipaserver/library/ipaserver_setup_kra.py | 4 +++- roles/ipaserver/library/ipaserver_setup_krb.py | 4 +++- roles/ipaserver/library/ipaserver_setup_ntp.py | 4 +++- roles/ipaserver/library/ipaserver_setup_otpd.py | 4 +++- roles/ipaserver/library/ipaserver_test.py | 4 ++++ roles/ipaserver/module_utils/ansible_ipa_server.py | 4 ++++ utils/templates/ipamodule+member.py.in | 4 ++++ utils/templates/ipamodule.py.in | 4 ++++ 97 files changed, 351 insertions(+), 36 deletions(-) diff --git a/plugins/doc_fragments/ipamodule_base_docs.py b/plugins/doc_fragments/ipamodule_base_docs.py index 10b1bb2b..7939072b 100644 --- a/plugins/doc_fragments/ipamodule_base_docs.py +++ b/plugins/doc_fragments/ipamodule_base_docs.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + class ModuleDocFragment(object): # pylint: disable=R0205,R0903 DOCUMENTATION = r""" diff --git a/plugins/module_utils/ansible_freeipa_module.py b/plugins/module_utils/ansible_freeipa_module.py index c6307aea..e3b523a5 100644 --- a/plugins/module_utils/ansible_freeipa_module.py +++ b/plugins/module_utils/ansible_freeipa_module.py @@ -22,6 +22,10 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + __all__ = ["gssapi", "netaddr", "api", "ipalib_errors", "Env", "DEFAULT_CONFIG", "LDAP_GENERALIZED_TIME_FORMAT", "kinit_password", "kinit_keytab", "run", "DN", "VERSION", diff --git a/plugins/modules/ipaautomember.py b/plugins/modules/ipaautomember.py index 7230ea57..12e641ab 100644 --- a/plugins/modules/ipaautomember.py +++ b/plugins/modules/ipaautomember.py @@ -21,6 +21,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "1.0", diff --git a/plugins/modules/ipaautomountlocation.py b/plugins/modules/ipaautomountlocation.py index f1925ddc..8212674c 100644 --- a/plugins/modules/ipaautomountlocation.py +++ b/plugins/modules/ipaautomountlocation.py @@ -19,6 +19,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipaconfig.py b/plugins/modules/ipaconfig.py index 1239fbc3..6af2bfdc 100644 --- a/plugins/modules/ipaconfig.py +++ b/plugins/modules/ipaconfig.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipadelegation.py b/plugins/modules/ipadelegation.py index 33593056..4b8b6fae 100644 --- a/plugins/modules/ipadelegation.py +++ b/plugins/modules/ipadelegation.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipadnsconfig.py b/plugins/modules/ipadnsconfig.py index 889b7ee7..443562ff 100644 --- a/plugins/modules/ipadnsconfig.py +++ b/plugins/modules/ipadnsconfig.py @@ -21,6 +21,10 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipadnsforwardzone.py b/plugins/modules/ipadnsforwardzone.py index 09ff09b9..faae55fa 100644 --- a/plugins/modules/ipadnsforwardzone.py +++ b/plugins/modules/ipadnsforwardzone.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipadnsrecord.py b/plugins/modules/ipadnsrecord.py index 9f8d2772..e9b3e5bc 100644 --- a/plugins/modules/ipadnsrecord.py +++ b/plugins/modules/ipadnsrecord.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + """DNS Record ansible-freeipa module.""" ANSIBLE_METADATA = { diff --git a/plugins/modules/ipadnszone.py b/plugins/modules/ipadnszone.py index c1354d3a..24ffc46d 100644 --- a/plugins/modules/ipadnszone.py +++ b/plugins/modules/ipadnszone.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipagroup.py b/plugins/modules/ipagroup.py index 2815b460..1cc7fb4e 100644 --- a/plugins/modules/ipagroup.py +++ b/plugins/modules/ipagroup.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipahbacrule.py b/plugins/modules/ipahbacrule.py index 3547b95a..6e8aa893 100644 --- a/plugins/modules/ipahbacrule.py +++ b/plugins/modules/ipahbacrule.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipahbacsvc.py b/plugins/modules/ipahbacsvc.py index 30e9fdde..ce3c63b4 100644 --- a/plugins/modules/ipahbacsvc.py +++ b/plugins/modules/ipahbacsvc.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipahbacsvcgroup.py b/plugins/modules/ipahbacsvcgroup.py index 60f05d2d..537b20bd 100644 --- a/plugins/modules/ipahbacsvcgroup.py +++ b/plugins/modules/ipahbacsvcgroup.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipahost.py b/plugins/modules/ipahost.py index aa94ccec..40b8a740 100644 --- a/plugins/modules/ipahost.py +++ b/plugins/modules/ipahost.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipahostgroup.py b/plugins/modules/ipahostgroup.py index cf9ce90c..c47ee0ac 100644 --- a/plugins/modules/ipahostgroup.py +++ b/plugins/modules/ipahostgroup.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipalocation.py b/plugins/modules/ipalocation.py index 9b017cd0..bd4060b8 100644 --- a/plugins/modules/ipalocation.py +++ b/plugins/modules/ipalocation.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipapermission.py b/plugins/modules/ipapermission.py index b1016133..c6adb287 100644 --- a/plugins/modules/ipapermission.py +++ b/plugins/modules/ipapermission.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipaprivilege.py b/plugins/modules/ipaprivilege.py index 6856b1a6..a3e12347 100644 --- a/plugins/modules/ipaprivilege.py +++ b/plugins/modules/ipaprivilege.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + """ansible-freeipa module to manage FreeIPA privileges.""" diff --git a/plugins/modules/ipapwpolicy.py b/plugins/modules/ipapwpolicy.py index 6f1fd06c..e1a2694d 100644 --- a/plugins/modules/ipapwpolicy.py +++ b/plugins/modules/ipapwpolicy.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/iparole.py b/plugins/modules/iparole.py index 63d674fd..565bd9ca 100644 --- a/plugins/modules/iparole.py +++ b/plugins/modules/iparole.py @@ -21,6 +21,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipaselfservice.py b/plugins/modules/ipaselfservice.py index 7bd26aff..cffd1353 100644 --- a/plugins/modules/ipaselfservice.py +++ b/plugins/modules/ipaselfservice.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipaserver.py b/plugins/modules/ipaserver.py index ac52ca18..0cda16f6 100644 --- a/plugins/modules/ipaserver.py +++ b/plugins/modules/ipaserver.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipaservice.py b/plugins/modules/ipaservice.py index 3f30bd23..db51e0b3 100644 --- a/plugins/modules/ipaservice.py +++ b/plugins/modules/ipaservice.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipasudocmd.py b/plugins/modules/ipasudocmd.py index 614f45b4..b48bd70c 100644 --- a/plugins/modules/ipasudocmd.py +++ b/plugins/modules/ipasudocmd.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipasudocmdgroup.py b/plugins/modules/ipasudocmdgroup.py index 42f29fb8..420e4d61 100644 --- a/plugins/modules/ipasudocmdgroup.py +++ b/plugins/modules/ipasudocmdgroup.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipasudorule.py b/plugins/modules/ipasudorule.py index d5a459a8..ffc8d21b 100644 --- a/plugins/modules/ipasudorule.py +++ b/plugins/modules/ipasudorule.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipatopologysegment.py b/plugins/modules/ipatopologysegment.py index e8ef2b0a..1c50f8fa 100644 --- a/plugins/modules/ipatopologysegment.py +++ b/plugins/modules/ipatopologysegment.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipatopologysuffix.py b/plugins/modules/ipatopologysuffix.py index c5be3d3e..a317431a 100644 --- a/plugins/modules/ipatopologysuffix.py +++ b/plugins/modules/ipatopologysuffix.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipatrust.py b/plugins/modules/ipatrust.py index 0d9036eb..ec08586c 100644 --- a/plugins/modules/ipatrust.py +++ b/plugins/modules/ipatrust.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = {'metadata_version': '1.1', 'supported_by': 'community', 'status': ['preview'], diff --git a/plugins/modules/ipauser.py b/plugins/modules/ipauser.py index f88e8d8f..6e8865e4 100644 --- a/plugins/modules/ipauser.py +++ b/plugins/modules/ipauser.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/plugins/modules/ipavault.py b/plugins/modules/ipavault.py index 0274b705..4eeb175a 100644 --- a/plugins/modules/ipavault.py +++ b/plugins/modules/ipavault.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/roles/ipabackup/library/ipabackup_get_backup_dir.py b/roles/ipabackup/library/ipabackup_get_backup_dir.py index b76d01d4..ee9b7d28 100644 --- a/roles/ipabackup/library/ipabackup_get_backup_dir.py +++ b/roles/ipabackup/library/ipabackup_get_backup_dir.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/action_plugins/ipaclient_get_otp.py b/roles/ipaclient/action_plugins/ipaclient_get_otp.py index 8e04ad99..c7a26462 100644 --- a/roles/ipaclient/action_plugins/ipaclient_get_otp.py +++ b/roles/ipaclient/action_plugins/ipaclient_get_otp.py @@ -17,6 +17,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + try: import gssapi except ImportError: diff --git a/roles/ipaclient/library/ipaclient_api.py b/roles/ipaclient/library/ipaclient_api.py index 865438f3..ace53353 100644 --- a/roles/ipaclient/library/ipaclient_api.py +++ b/roles/ipaclient/library/ipaclient_api.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} diff --git a/roles/ipaclient/library/ipaclient_fix_ca.py b/roles/ipaclient/library/ipaclient_fix_ca.py index 858edc28..dcc6ab1b 100644 --- a/roles/ipaclient/library/ipaclient_fix_ca.py +++ b/roles/ipaclient/library/ipaclient_fix_ca.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} diff --git a/roles/ipaclient/library/ipaclient_fstore.py b/roles/ipaclient/library/ipaclient_fstore.py index 4c342960..89bee90e 100644 --- a/roles/ipaclient/library/ipaclient_fstore.py +++ b/roles/ipaclient/library/ipaclient_fstore.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_get_facts.py b/roles/ipaclient/library/ipaclient_get_facts.py index b7e270fc..263518ce 100644 --- a/roles/ipaclient/library/ipaclient_get_facts.py +++ b/roles/ipaclient/library/ipaclient_get_facts.py @@ -1,6 +1,10 @@ #!/usr/bin/python # -*- coding: utf-8 -*- +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + DOCUMENTATION = """ --- module: ipaclient_get_facts diff --git a/roles/ipaclient/library/ipaclient_get_otp.py b/roles/ipaclient/library/ipaclient_get_otp.py index 03e8b2b0..50516f55 100644 --- a/roles/ipaclient/library/ipaclient_get_otp.py +++ b/roles/ipaclient/library/ipaclient_get_otp.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} diff --git a/roles/ipaclient/library/ipaclient_ipa_conf.py b/roles/ipaclient/library/ipaclient_ipa_conf.py index ac31e01f..0e04d47f 100644 --- a/roles/ipaclient/library/ipaclient_ipa_conf.py +++ b/roles/ipaclient/library/ipaclient_ipa_conf.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_join.py b/roles/ipaclient/library/ipaclient_join.py index b67be370..33dbe972 100644 --- a/roles/ipaclient/library/ipaclient_join.py +++ b/roles/ipaclient/library/ipaclient_join.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_set_hostname.py b/roles/ipaclient/library/ipaclient_set_hostname.py index 4145df9a..20b4a735 100644 --- a/roles/ipaclient/library/ipaclient_set_hostname.py +++ b/roles/ipaclient/library/ipaclient_set_hostname.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_setup_automount.py b/roles/ipaclient/library/ipaclient_setup_automount.py index 1fda9ba0..9bec9190 100644 --- a/roles/ipaclient/library/ipaclient_setup_automount.py +++ b/roles/ipaclient/library/ipaclient_setup_automount.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_setup_firefox.py b/roles/ipaclient/library/ipaclient_setup_firefox.py index 7095692e..7c7fdbee 100644 --- a/roles/ipaclient/library/ipaclient_setup_firefox.py +++ b/roles/ipaclient/library/ipaclient_setup_firefox.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_setup_krb5.py b/roles/ipaclient/library/ipaclient_setup_krb5.py index 9eb3e948..19006dfa 100644 --- a/roles/ipaclient/library/ipaclient_setup_krb5.py +++ b/roles/ipaclient/library/ipaclient_setup_krb5.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_setup_nis.py b/roles/ipaclient/library/ipaclient_setup_nis.py index e04b87c6..e77b28cf 100644 --- a/roles/ipaclient/library/ipaclient_setup_nis.py +++ b/roles/ipaclient/library/ipaclient_setup_nis.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_setup_nss.py b/roles/ipaclient/library/ipaclient_setup_nss.py index d829a56b..1597ae61 100644 --- a/roles/ipaclient/library/ipaclient_setup_nss.py +++ b/roles/ipaclient/library/ipaclient_setup_nss.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_setup_ntp.py b/roles/ipaclient/library/ipaclient_setup_ntp.py index b41a910b..2c6c2214 100644 --- a/roles/ipaclient/library/ipaclient_setup_ntp.py +++ b/roles/ipaclient/library/ipaclient_setup_ntp.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_setup_ssh.py b/roles/ipaclient/library/ipaclient_setup_ssh.py index f721b2a2..5fdfdac6 100644 --- a/roles/ipaclient/library/ipaclient_setup_ssh.py +++ b/roles/ipaclient/library/ipaclient_setup_ssh.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_setup_sssd.py b/roles/ipaclient/library/ipaclient_setup_sssd.py index 3fd767fc..12c91f22 100644 --- a/roles/ipaclient/library/ipaclient_setup_sssd.py +++ b/roles/ipaclient/library/ipaclient_setup_sssd.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_test.py b/roles/ipaclient/library/ipaclient_test.py index 84c8f0a4..20b0fdd0 100644 --- a/roles/ipaclient/library/ipaclient_test.py +++ b/roles/ipaclient/library/ipaclient_test.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/library/ipaclient_test_keytab.py b/roles/ipaclient/library/ipaclient_test_keytab.py index 75ed1091..62285063 100644 --- a/roles/ipaclient/library/ipaclient_test_keytab.py +++ b/roles/ipaclient/library/ipaclient_test_keytab.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaclient/module_utils/ansible_ipa_client.py b/roles/ipaclient/module_utils/ansible_ipa_client.py index 733375c9..b424a6fc 100644 --- a/roles/ipaclient/module_utils/ansible_ipa_client.py +++ b/roles/ipaclient/module_utils/ansible_ipa_client.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + __all__ = ["gssapi", "version", "ipadiscovery", "api", "errors", "x509", "constants", "sysrestore", "certmonger", "certstore", "delete_persistent_client_session_data", "ScriptError", diff --git a/roles/ipareplica/library/ipareplica_add_to_ipaservers.py b/roles/ipareplica/library/ipareplica_add_to_ipaservers.py index acd553b7..0a29922d 100644 --- a/roles/ipareplica/library/ipareplica_add_to_ipaservers.py +++ b/roles/ipareplica/library/ipareplica_add_to_ipaservers.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_create_ipa_conf.py b/roles/ipareplica/library/ipareplica_create_ipa_conf.py index c475469f..aee2d08f 100644 --- a/roles/ipareplica/library/ipareplica_create_ipa_conf.py +++ b/roles/ipareplica/library/ipareplica_create_ipa_conf.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_custodia_import_dm_password.py b/roles/ipareplica/library/ipareplica_custodia_import_dm_password.py index c580ed5f..54036cf5 100644 --- a/roles/ipareplica/library/ipareplica_custodia_import_dm_password.py +++ b/roles/ipareplica/library/ipareplica_custodia_import_dm_password.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_ds_apply_updates.py b/roles/ipareplica/library/ipareplica_ds_apply_updates.py index 71008b32..29f3e2dc 100644 --- a/roles/ipareplica/library/ipareplica_ds_apply_updates.py +++ b/roles/ipareplica/library/ipareplica_ds_apply_updates.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_ds_enable_ssl.py b/roles/ipareplica/library/ipareplica_ds_enable_ssl.py index 3e4090d8..6bebfc59 100644 --- a/roles/ipareplica/library/ipareplica_ds_enable_ssl.py +++ b/roles/ipareplica/library/ipareplica_ds_enable_ssl.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_enable_ipa.py b/roles/ipareplica/library/ipareplica_enable_ipa.py index d18552b5..16242fad 100644 --- a/roles/ipareplica/library/ipareplica_enable_ipa.py +++ b/roles/ipareplica/library/ipareplica_enable_ipa.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_install_ca_certs.py b/roles/ipareplica/library/ipareplica_install_ca_certs.py index b93f0b9a..7c9b2611 100644 --- a/roles/ipareplica/library/ipareplica_install_ca_certs.py +++ b/roles/ipareplica/library/ipareplica_install_ca_certs.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_krb_enable_ssl.py b/roles/ipareplica/library/ipareplica_krb_enable_ssl.py index a302b0fa..0d29c40c 100644 --- a/roles/ipareplica/library/ipareplica_krb_enable_ssl.py +++ b/roles/ipareplica/library/ipareplica_krb_enable_ssl.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_master_password.py b/roles/ipareplica/library/ipareplica_master_password.py index 02f9fd15..b52d0cb8 100644 --- a/roles/ipareplica/library/ipareplica_master_password.py +++ b/roles/ipareplica/library/ipareplica_master_password.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipareplica/library/ipareplica_prepare.py b/roles/ipareplica/library/ipareplica_prepare.py index 8adc46cb..3052355f 100644 --- a/roles/ipareplica/library/ipareplica_prepare.py +++ b/roles/ipareplica/library/ipareplica_prepare.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_promote_openldap_conf.py b/roles/ipareplica/library/ipareplica_promote_openldap_conf.py index 207794ce..6d34fcbd 100644 --- a/roles/ipareplica/library/ipareplica_promote_openldap_conf.py +++ b/roles/ipareplica/library/ipareplica_promote_openldap_conf.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_promote_sssd.py b/roles/ipareplica/library/ipareplica_promote_sssd.py index 66d84d0d..7356a9c9 100644 --- a/roles/ipareplica/library/ipareplica_promote_sssd.py +++ b/roles/ipareplica/library/ipareplica_promote_sssd.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_restart_kdc.py b/roles/ipareplica/library/ipareplica_restart_kdc.py index b9c99006..261e5c34 100644 --- a/roles/ipareplica/library/ipareplica_restart_kdc.py +++ b/roles/ipareplica/library/ipareplica_restart_kdc.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_adtrust.py b/roles/ipareplica/library/ipareplica_setup_adtrust.py index 734e56d6..054d95a3 100644 --- a/roles/ipareplica/library/ipareplica_setup_adtrust.py +++ b/roles/ipareplica/library/ipareplica_setup_adtrust.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_ca.py b/roles/ipareplica/library/ipareplica_setup_ca.py index d71299b6..608c36ac 100644 --- a/roles/ipareplica/library/ipareplica_setup_ca.py +++ b/roles/ipareplica/library/ipareplica_setup_ca.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_certmonger.py b/roles/ipareplica/library/ipareplica_setup_certmonger.py index 982aab0a..18b4607b 100644 --- a/roles/ipareplica/library/ipareplica_setup_certmonger.py +++ b/roles/ipareplica/library/ipareplica_setup_certmonger.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_custodia.py b/roles/ipareplica/library/ipareplica_setup_custodia.py index 2e95c262..89ea33a1 100644 --- a/roles/ipareplica/library/ipareplica_setup_custodia.py +++ b/roles/ipareplica/library/ipareplica_setup_custodia.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_dns.py b/roles/ipareplica/library/ipareplica_setup_dns.py index 51ab749d..412dca54 100644 --- a/roles/ipareplica/library/ipareplica_setup_dns.py +++ b/roles/ipareplica/library/ipareplica_setup_dns.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_ds.py b/roles/ipareplica/library/ipareplica_setup_ds.py index 8a44120b..4406852e 100644 --- a/roles/ipareplica/library/ipareplica_setup_ds.py +++ b/roles/ipareplica/library/ipareplica_setup_ds.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_http.py b/roles/ipareplica/library/ipareplica_setup_http.py index 3fa48070..0c6227bc 100644 --- a/roles/ipareplica/library/ipareplica_setup_http.py +++ b/roles/ipareplica/library/ipareplica_setup_http.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_kra.py b/roles/ipareplica/library/ipareplica_setup_kra.py index 0b2f681a..5ce39420 100644 --- a/roles/ipareplica/library/ipareplica_setup_kra.py +++ b/roles/ipareplica/library/ipareplica_setup_kra.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_krb.py b/roles/ipareplica/library/ipareplica_setup_krb.py index 4500a6fe..ce5b2d92 100644 --- a/roles/ipareplica/library/ipareplica_setup_krb.py +++ b/roles/ipareplica/library/ipareplica_setup_krb.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_setup_otpd.py b/roles/ipareplica/library/ipareplica_setup_otpd.py index 1b8117d8..fab22bca 100644 --- a/roles/ipareplica/library/ipareplica_setup_otpd.py +++ b/roles/ipareplica/library/ipareplica_setup_otpd.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipareplica/library/ipareplica_test.py b/roles/ipareplica/library/ipareplica_test.py index 217e29c8..ab676475 100644 --- a/roles/ipareplica/library/ipareplica_test.py +++ b/roles/ipareplica/library/ipareplica_test.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipareplica/module_utils/ansible_ipa_replica.py b/roles/ipareplica/module_utils/ansible_ipa_replica.py index 1de75e1a..66003f15 100644 --- a/roles/ipareplica/module_utils/ansible_ipa_replica.py +++ b/roles/ipareplica/module_utils/ansible_ipa_replica.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + __all__ = ["contextlib", "dnsexception", "dnsresolver", "dnsreversename", "parse_version", "IPAChangeConf", "certstore", "sysrestore", "ipa_generate_password", "kinit_keytab", diff --git a/roles/ipaserver/library/ipaserver_enable_ipa.py b/roles/ipaserver/library/ipaserver_enable_ipa.py index 00bf3da6..70a1ed7d 100644 --- a/roles/ipaserver/library/ipaserver_enable_ipa.py +++ b/roles/ipaserver/library/ipaserver_enable_ipa.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_load_cache.py b/roles/ipaserver/library/ipaserver_load_cache.py index ad29455c..daf2c41c 100644 --- a/roles/ipaserver/library/ipaserver_load_cache.py +++ b/roles/ipaserver/library/ipaserver_load_cache.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_master_password.py b/roles/ipaserver/library/ipaserver_master_password.py index bf9c52b0..51c548ce 100644 --- a/roles/ipaserver/library/ipaserver_master_password.py +++ b/roles/ipaserver/library/ipaserver_master_password.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaserver/library/ipaserver_prepare.py b/roles/ipaserver/library/ipaserver_prepare.py index 1341abfb..d528a7ad 100644 --- a/roles/ipaserver/library/ipaserver_prepare.py +++ b/roles/ipaserver/library/ipaserver_prepare.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_set_ds_password.py b/roles/ipaserver/library/ipaserver_set_ds_password.py index 4b5b3b35..14cee2f7 100644 --- a/roles/ipaserver/library/ipaserver_set_ds_password.py +++ b/roles/ipaserver/library/ipaserver_set_ds_password.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_adtrust.py b/roles/ipaserver/library/ipaserver_setup_adtrust.py index 341cb4e2..c393fdd4 100644 --- a/roles/ipaserver/library/ipaserver_setup_adtrust.py +++ b/roles/ipaserver/library/ipaserver_setup_adtrust.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_ca.py b/roles/ipaserver/library/ipaserver_setup_ca.py index 53a3633a..99e73907 100644 --- a/roles/ipaserver/library/ipaserver_setup_ca.py +++ b/roles/ipaserver/library/ipaserver_setup_ca.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_custodia.py b/roles/ipaserver/library/ipaserver_setup_custodia.py index 565020b8..a03b0adc 100644 --- a/roles/ipaserver/library/ipaserver_setup_custodia.py +++ b/roles/ipaserver/library/ipaserver_setup_custodia.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_dns.py b/roles/ipaserver/library/ipaserver_setup_dns.py index 396b4394..304c3301 100644 --- a/roles/ipaserver/library/ipaserver_setup_dns.py +++ b/roles/ipaserver/library/ipaserver_setup_dns.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_ds.py b/roles/ipaserver/library/ipaserver_setup_ds.py index 3fc9d50a..de0d793b 100644 --- a/roles/ipaserver/library/ipaserver_setup_ds.py +++ b/roles/ipaserver/library/ipaserver_setup_ds.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_http.py b/roles/ipaserver/library/ipaserver_setup_http.py index 4d9a54d6..7231268e 100644 --- a/roles/ipaserver/library/ipaserver_setup_http.py +++ b/roles/ipaserver/library/ipaserver_setup_http.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_kra.py b/roles/ipaserver/library/ipaserver_setup_kra.py index 5296c09e..12677c76 100644 --- a/roles/ipaserver/library/ipaserver_setup_kra.py +++ b/roles/ipaserver/library/ipaserver_setup_kra.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_krb.py b/roles/ipaserver/library/ipaserver_setup_krb.py index 1101d8d0..4529fd5e 100644 --- a/roles/ipaserver/library/ipaserver_setup_krb.py +++ b/roles/ipaserver/library/ipaserver_setup_krb.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_ntp.py b/roles/ipaserver/library/ipaserver_setup_ntp.py index ab1fde7e..446d969c 100644 --- a/roles/ipaserver/library/ipaserver_setup_ntp.py +++ b/roles/ipaserver/library/ipaserver_setup_ntp.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_setup_otpd.py b/roles/ipaserver/library/ipaserver_setup_otpd.py index e72d27b5..358a4c69 100644 --- a/roles/ipaserver/library/ipaserver_setup_otpd.py +++ b/roles/ipaserver/library/ipaserver_setup_otpd.py @@ -22,7 +22,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from __future__ import print_function +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.0', diff --git a/roles/ipaserver/library/ipaserver_test.py b/roles/ipaserver/library/ipaserver_test.py index 175a1e03..78017cc7 100644 --- a/roles/ipaserver/library/ipaserver_test.py +++ b/roles/ipaserver/library/ipaserver_test.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { 'metadata_version': '1.0', 'supported_by': 'community', diff --git a/roles/ipaserver/module_utils/ansible_ipa_server.py b/roles/ipaserver/module_utils/ansible_ipa_server.py index a5310f88..cd118294 100644 --- a/roles/ipaserver/module_utils/ansible_ipa_server.py +++ b/roles/ipaserver/module_utils/ansible_ipa_server.py @@ -22,6 +22,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + __all__ = ["IPAChangeConf", "certmonger", "sysrestore", "root_logger", "ipa_generate_password", "run", "ScriptError", "services", "tasks", "errors", "x509", "DOMAIN_LEVEL_0", "MIN_DOMAIN_LEVEL", diff --git a/utils/templates/ipamodule+member.py.in b/utils/templates/ipamodule+member.py.in index d3438b1b..d5514d98 100644 --- a/utils/templates/ipamodule+member.py.in +++ b/utils/templates/ipamodule+member.py.in @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", diff --git a/utils/templates/ipamodule.py.in b/utils/templates/ipamodule.py.in index e305c976..4774dc36 100644 --- a/utils/templates/ipamodule.py.in +++ b/utils/templates/ipamodule.py.in @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import (absolute_import, division, print_function) + +__metaclass__ = type + ANSIBLE_METADATA = { "metadata_version": "1.0", "supported_by": "community", -- GitLab